diff --git a/wordclock/wordclock.ino b/wordclock/wordclock.ino index 7b60181..11bc0ca 100644 --- a/wordclock/wordclock.ino +++ b/wordclock/wordclock.ino @@ -223,6 +223,20 @@ void set_word(int word, time_t current_time = loctime) { Serial.println(); } +void set_brightness() +{ + switch(int(hour(loctime))) + { + case BRIGHTNESS_HIGH_TIME: + brightness = BRIGHTNESS_HIGH; + break; + case BRIGHTNESS_LOW_TIME: + brightness = BRIGHTNESS_LOW; + break; + } + +} + void setClock() { Serial.println("Updating display..."); time_t current_time = loctime; @@ -237,20 +251,6 @@ void setClock() { Serial.println("... display updated."); } -void set_brightness(); -{ - switch(int(hour(loctime))) - { - case BRIGHTNESS_HIGH_TIME: - brightness = BRIGHTNESS_HIGH; - break; - case BRIGHTNESS_LOW_TIME: - brightness = BRIGHTNESS_LOW; - break; - } - -} - int getHour() { int h = int(hour(loctime));