Android Bluetooth joystick

I will post Joystick Bluetooth Commander V2.4 on Google play later today

Change log:

  • Display up to four toggle buttons with visual feedback
  • Button visibility option setting (0 - 2 - 4)
  • added Timeout count "every 1000 intervals" to support new low refresh intervals
  • default refresh interval set to 50ms
  • removed buttons data option setting (not relevant anymore)

New buttons protocol:
Button1_ON < STX '1' ETX >
Button1_OFF < STX '2' ETX >
Button2_ON < STX '3' ETX >
.....
Button8_OFF < STX '8' ETX >

The original Arduino setLED() function should be modified:

void setLED(int LEDstatus)  {
  switch (LEDstatus) {
    case '1':
      Serial.println("Button_1: ON");
      // your code...      
      break;
    case '2':
      Serial.println("Button_1: OFF");
      // your code...      
      break;
    case '3':
      Serial.println("Button_2: ON");
      // your code...      
      break;
    case '4':
      Serial.println("Button_2: OFF");
      // your code...      
      break;
    case '5':
      Serial.println("Button_3: ON");
      // your code...      
      break;
    case '6':
      Serial.println("Button_3: OFF");
      // your code...      
      break;
    case '7':
      Serial.println("Button_4: ON");
      // your code...      
      break;
    case '8':
      Serial.println("Button_4: OFF");
      // your code...      
      break;
  }
}

Disclaimer:
See reply #36

@ oric_dan
Please let me have a tablet screenshot similar to reply #28

Enjoy

EDIT: Done!