Added SerialDebug Output with define
This commit is contained in:
parent
6f1be51a9e
commit
ea5a266ee2
@ -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"'
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user