btWaiting()

btWaiting( )

Description
Waiting until bluetooth connected

Syntax
btWaiting(


Parameters
  none

Usages
btWaiting( )


Examples in arduino

#include "AppGosu.h"
AppGosu app;

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


  
    app.btWaiting();

    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: