change display period to 1 min

This commit is contained in:
Villivateur Von 2021-09-27 21:55:31 +08:00
parent a66d2ef2d6
commit 635507ac68
1 changed files with 9 additions and 3 deletions

View File

@ -31,10 +31,16 @@ void setup()
void loop()
{
static uint32_t tickCount = 0;
delay(1000);
tickCount++;
funcButton->Scan();
if (netClient->FetchNewData() != OK) {
return;
if (tickCount % 60 == 0) {
if (netClient->FetchNewData() != OK) {
return;
}
displayPanel->DisplayLedMap(netClient->GetSeg0(), netClient->GetSeg1());
}
displayPanel->DisplayLedMap(netClient->GetSeg0(), netClient->GetSeg1());
}