setScale()


setScale( )

Description
Set resolution of display on smart phone.


Syntax
setScale(int)

Parameters
 1  :  depending on smart phone
 2  :  480 x 800 (defaule, auto scale)

Usages
setScale(1)


Examples in arduino

#include "AppGosu.h"
AppGosu app;

void setup() {    
    app.start();
    app.setDelayCmd(20);  // max speed 20ms


    app.setScale(1);    // depending on smart phone

    myStart();
}

void loop() {
  
 
} // end of loop

//---------------------------------------------------------
void serialEvent() {
      app.serialMessage();
      EventLoop();
}
void EventLoop() {

    //if( app.btConnected()) {  myStart(); }      // for auto starting
  
    // user event code here

}
//---------------------------------------------------------
void myStart(void) {
    // user starting code here
 
    app.clearAll();

}














by AppGosu
-----------------------------------------



















No comments: