From 95d8ba5342bdfe5f739fb7c5577266cde97c888f Mon Sep 17 00:00:00 2001 From: Charles JAVERLIAT <charles.javerliat@gmail.com> Date: Sun, 28 Feb 2021 20:12:10 +0100 Subject: [PATCH] Modify string for team --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index d859614..00d1ca3 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(); -- GitLab