Adjustet Counter to match Minute and Seconds
This commit is contained in:
parent
7ab8294dc7
commit
6f1be51a9e
11
src/main.cpp
11
src/main.cpp
@ -64,9 +64,9 @@ DNSServer dnsServer;
|
||||
#endif
|
||||
AsyncWebServer server(80);
|
||||
|
||||
Ticker FactionTicker(FactionTicker_callback, 500, 0, MILLIS);
|
||||
Ticker FactionTicker(FactionTicker_callback, 1000, 0, MILLIS);
|
||||
Ticker SerialOutputTicker(serialOutTicker_callback, 5000, 0, MILLIS);
|
||||
Ticker InputGetterTicker(inputGetterTicker_callback, 500, 0, MILLIS);
|
||||
Ticker InputGetterTicker(inputGetterTicker_callback, 250, 0, MILLIS);
|
||||
Ticker PowerMonitorTicker(powerMonitorTicker_callback, 5000, 0, MILLIS);
|
||||
|
||||
Factions activeFaction = NONE;
|
||||
@ -253,9 +253,10 @@ void SevenSeg_Output()
|
||||
disp_FAC_2.setBrightness(activeFaction == FACTION_2 ? 7 : 0);
|
||||
disp_FAC_3.setBrightness(activeFaction == FACTION_3 ? 7 : 0);
|
||||
|
||||
disp_FAC_1.showNumberDecEx(Count_Faction_1 / 20, Faction_1_dot, true, 4, 0);
|
||||
disp_FAC_2.showNumberDecEx(Count_Faction_2 / 20, Faction_2_dot, true, 4, 0);
|
||||
disp_FAC_3.showNumberDecEx(Count_Faction_3 / 20, Faction_3_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_3.showNumberDecEx(Count_Faction_3 / 60, Faction_3_dot, true, 4, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void FactionTicker_callback()
|
||||
|
Loading…
x
Reference in New Issue
Block a user