 byte rightJoystickButtonState;
 
 // Buttons
-#define BUTTON_LEFT 0
-#define BUTTON_RIGHT 1
+#define BUTTON_LEFT 1
+#define BUTTON_RIGHT 10
 
 byte leftButtonState;
 byte rightButtonState;

#endif
  }

  // refresh transmission state on the display, if changed
  if (transmissionState != previousTransmissionState) {
    previousTransmissionState = transmissionState;
    drawDisplay();
  }

  // refresh Rx Vcc on the display, if changed more than +/- 0.05V
  if (payload.vcc - 0.05 >= previousRxVcc || payload.vcc + 0.05 <= previousRxVcc) {
    previousRxVcc = payload.vcc;
    drawDisplay();
  }

  // refresh Rx V Batt on the display, if changed more than +/- 0.2V
  if (payload.batteryVoltage - 0.5 >= previousRxVbatt || payload.batteryVoltage + 0.5 <= previousRxVbatt) {
    previousRxVbatt = payload.batteryVoltage;
    drawDisplay();
  }



// Micro RC Project. a tiny little 2.4GHz RC unit!
// 3.3V, 8MHz Pro Mini, 2.4GHz NRF24L01 radio module
// SSD 1306 128 x 63 0.96" OLED
// Custom PCB from OSH Park

float codeVersion = 1.0;

//
// =======================================================================================================
