diff --git a/src/main.cpp b/src/main.cpp index d8596147b26488391a07eee38616f949be1d6e0a..00d1ca3891c0aed4d7337d9d6abb268855abd50e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,6 +8,7 @@ const int pullCordPin = D8; const int switchPin = D9; const int buttonPin = D10; +const int buttonLedPin = D11; // Current team (either TEAM_YELLOW or TEAM_BLUE) bool team; @@ -55,7 +56,7 @@ void refreshScreen() lcd.print(estimatedScore); lcd.setCursor(0, 1); - lcd.print("Team=" + team ? "JAUNE" : "BLEU"); + lcd.print(team ? "Team=JAUNE" : "Team=BLEU"); lcd.setCursor(12, 1); lcd.print(pullCordState ? "GO" : "STOP"); lcd.setCursor(13, 0); @@ -67,6 +68,9 @@ void setup() pinMode(pullCordPin, INPUT_PULLUP); pinMode(switchPin, INPUT_PULLUP); pinMode(buttonPin, INPUT_PULLUP); + pinMode(buttonLedPin, OUTPUT); + + digitalWrite(buttonLedPin, HIGH); lcd.init(); lcd.backlight();