Added SerialDebug Output with define

This commit is contained in:
Marcel Peterkau 2021-06-13 23:19:16 +02:00
parent 6f1be51a9e
commit ea5a266ee2
2 changed files with 7 additions and 3 deletions

View File

@ -21,6 +21,7 @@ upload_flags=
--auth=UploadTheFlag --auth=UploadTheFlag
build_flags= build_flags=
-D SERIAL_DEBUG
-D DEVICE_NAME='"DE CTF Timer Prototype 1"' -D DEVICE_NAME='"DE CTF Timer Prototype 1"'
-D WIFI_CLIENT -D WIFI_CLIENT
-D WIFI_SSID='"BND_Scanner_#42"' -D WIFI_SSID='"BND_Scanner_#42"'

View File

@ -249,9 +249,9 @@ void SevenSeg_Output()
} }
else else
{ {
disp_FAC_1.setBrightness(activeFaction == FACTION_1 ? 7 : 0); disp_FAC_1.setBrightness(activeFaction == FACTION_1 ? 7 : 0);
disp_FAC_2.setBrightness(activeFaction == FACTION_2 ? 7 : 0); disp_FAC_2.setBrightness(activeFaction == FACTION_2 ? 7 : 0);
disp_FAC_3.setBrightness(activeFaction == FACTION_3 ? 7 : 0); disp_FAC_3.setBrightness(activeFaction == FACTION_3 ? 7 : 0);
disp_FAC_1.showNumberDecEx(Count_Faction_1 / 60, Faction_1_dot, true, 4, 0); disp_FAC_1.showNumberDecEx(Count_Faction_1 / 60, Faction_1_dot, true, 4, 0);
disp_FAC_2.showNumberDecEx(Count_Faction_2 / 60, Faction_2_dot, true, 4, 0); disp_FAC_2.showNumberDecEx(Count_Faction_2 / 60, Faction_2_dot, true, 4, 0);
@ -355,6 +355,9 @@ void setup()
Serial.begin(9600); Serial.begin(9600);
Serial.print("\n\n\n"); Serial.print("\n\n\n");
#ifdef SERIAL_DEBUG
Serial.setDebugOutput(true);
#endif
if (ina219.begin()) if (ina219.begin())
PowerMonitorTicker.start(); PowerMonitorTicker.start();