Update openbot_nano.ino
//SETUP - Choose your body
//------------------------------------------------------//
// Setup the OpenBot version (DIY,PCB_V1,PCB_V2, RTR_V1, RC_CAR, LITE)
-#define OPENBOT LITE
+#define OPENBOT DIY
//------------------------------------------------------//
//SETTINGS - Global settings
@@ -377,6 +377,9 @@ unsigned long display_time = 0;
//------------------------------------------------------//
void setup()
{
+#if (OPENBOT == LITE)
+ coast_mode = !coast_mode;
+#endif
//Outputs
#if (OPENBOT == RC_CAR)
pinMode(PIN_PWM_T, OUTPUT);
@@ -390,7 +393,6 @@ void setup()
pinMode(PIN_PWM_R1, OUTPUT);
pinMode(PIN_PWM_R2, OUTPUT);
#endif
-
//Initialize with the I2C addr 0x3C
#if HAS_OLED
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
@@ -453,9 +455,6 @@ void setup()
//SERIAL_8O1 - 8 data bits, odd parity, 1 stop bit
//SERIAL_8N1 - 8 data bits, no parity, 1 stop bit
//Serial.setTimeout(10);
-#if (OPENBOT == LITE)
- coast_mode = !coast_mode;
-#endif
}
//------------------------------------------------------//
