1st working version -- start with blue to reduce the needed power when starting the display.

This commit is contained in:
2019-06-03 16:54:56 +02:00
parent 88e480716a
commit c3b80e668b
3 changed files with 27 additions and 27 deletions

View File

@@ -42,7 +42,7 @@ void setupWifiConnection() {
wifiManager.setSaveConfigCallback(saveConfigCallback);
wifiManager.setConfigPortalTimeout(300);
//set static ip
IPAddress _ip,_gw,_sn;
_ip.fromString(static_ip);
@@ -191,7 +191,7 @@ void loop() {
if (minutes % 5 == 0) hours++;
if (hours > 99) hours = 0;
sevenSegmentClock.displayTime(hours, minutes);
if (hours % 4 == 0) sevenSegmentClock.setBlinkMode(SeperatorBlinking); else sevenSegmentClock.setBlinkMode(NoBlinking);
if (hours % 4 == 0) sevenSegmentClock.setBlinkMode(SevenSegmentClock::SeperatorBlinking); else sevenSegmentClock.setBlinkMode(SevenSegmentClock::NoBlinking);
}
sevenSegmentClock.displayUpdate();
}