|
@ -15,7 +15,7 @@ void setup() { |
|
|
driveTimeout = 10; |
|
|
driveTimeout = 10; |
|
|
joystickInit(); //TODO
|
|
|
joystickInit(); //TODO
|
|
|
clearCommands(); |
|
|
clearCommands(); |
|
|
|
|
|
|
|
|
|
|
|
renderTime = millis(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void loop() { |
|
|
void loop() { |
|
@ -23,17 +23,22 @@ void loop() { |
|
|
|
|
|
|
|
|
while(!tasten.getButtonCycle(buttonStart)) { |
|
|
while(!tasten.getButtonCycle(buttonStart)) { |
|
|
manualDigitalDrive(); |
|
|
manualDigitalDrive(); |
|
|
updateTemp(); |
|
|
|
|
|
|
|
|
//updateTemp();
|
|
|
|
|
|
String temp_str = "T: " + String(temperature) + " Grad C"; |
|
|
|
|
|
lcdLines[5] = temp_str; |
|
|
|
|
|
refreshLCD(); |
|
|
} |
|
|
} |
|
|
tasten.clearButton(buttonStart); |
|
|
tasten.clearButton(buttonStart); |
|
|
while(!tasten.getButtonCycle(buttonStart)){ |
|
|
while(!tasten.getButtonCycle(buttonStart)){ |
|
|
motorMapping(); |
|
|
motorMapping(); |
|
|
updateTemp(); |
|
|
|
|
|
|
|
|
//updateTemp();
|
|
|
|
|
|
refreshLCD(); |
|
|
} |
|
|
} |
|
|
tasten.clearButton(buttonStart); |
|
|
tasten.clearButton(buttonStart); |
|
|
while(!tasten.getButtonCycle(buttonStart)){ |
|
|
while(!tasten.getButtonCycle(buttonStart)){ |
|
|
joystickSteuerung(); //TODO ()
|
|
|
joystickSteuerung(); //TODO ()
|
|
|
updateTemp(); |
|
|
|
|
|
|
|
|
//updateTemp();
|
|
|
|
|
|
refreshLCD(); |
|
|
} |
|
|
} |
|
|
tasten.clearButton(buttonStart); |
|
|
tasten.clearButton(buttonStart); |
|
|
} |
|
|
} |
|
@ -43,3 +48,16 @@ void lcdMenu() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void refreshLCD() { |
|
|
|
|
|
|
|
|
|
|
|
if((millis() - renderTime) >= renderTimeout) { |
|
|
|
|
|
lcd.clear(); |
|
|
|
|
|
for(uint8_t i = 0; i < sizeof(lcdLines); i++) { |
|
|
|
|
|
lcd.gotoXY(0, i); |
|
|
|
|
|
lcd.print(lcdLines[i]); |
|
|
|
|
|
} |
|
|
|
|
|
lcd.renderAll(); |
|
|
|
|
|
renderTime = millis(); |
|
|
|
|
|
} |
|
|
|
|
|
} |