|
|
|
|
@ -112,8 +112,8 @@ void setup()
|
|
|
|
|
(strlen("Hoverboard Serial") * 6)) / 2), 0);
|
|
|
|
|
display.println("Hoverboard Serial");
|
|
|
|
|
display.setCursor(int
|
|
|
|
|
((display.width() -(strlen("v STM32 0.1") *6))/2), 8);
|
|
|
|
|
display.println("v STM32 0.1");
|
|
|
|
|
((display.width() -(strlen("v old board") *6))/2), 8);
|
|
|
|
|
display.println("v old board");
|
|
|
|
|
/*
|
|
|
|
|
display.print("Nunchuk ");
|
|
|
|
|
nchuk.connect()? display.print("") : display.print("not ");
|
|
|
|
|
@ -247,7 +247,7 @@ int old_cursorX, old_cursorY;
|
|
|
|
|
Serial.print("Y : "); Serial.println(nchuk.joyY());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
display.setCursor(0, 40);
|
|
|
|
|
display.setTextSize(1); // Draw 1X-scale text
|
|
|
|
|
display.setTextColor(SSD1306_WHITE);
|
|
|
|
|
@ -268,7 +268,7 @@ int old_cursorX, old_cursorY;
|
|
|
|
|
display.print(cmd2);
|
|
|
|
|
|
|
|
|
|
display.display();
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
Send(cmd1, cmd2);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -359,7 +359,7 @@ void loop(void)
|
|
|
|
|
unsigned long timeNow = millis();
|
|
|
|
|
|
|
|
|
|
// Check for new received data
|
|
|
|
|
// Receive();
|
|
|
|
|
Receive();
|
|
|
|
|
|
|
|
|
|
if (iTimeSend > timeNow)
|
|
|
|
|
return;
|
|
|
|
|
|