1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Clock-friendly screen saver modes

This commit is contained in:
Rhys Weatherley
2012-05-20 10:45:32 +10:00
parent ec1d2edaaa
commit aee276ed3a
3 changed files with 79 additions and 11 deletions

View File

@@ -58,7 +58,9 @@ Form mainForm(lcd);
FrontScreenField frontScreen(mainForm);
void setup() {
//lcd.enableScreenSaver();
// Enable the screen saver.
lcd.setScreenSaverMode(FreetronicsLCD::BacklightOnSelect);
lcd.enableScreenSaver(3);
// Initialize the alarm melody.
alarmMelody.setMelody(alarmNotes, alarmLengths, sizeof(alarmLengths));