From ad3f8924300452cdb3fddc00ce89774866759ca3 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Wed, 23 May 2012 13:23:42 +1000 Subject: [PATCH] Pressing Select goes back to the front screen --- libraries/RTC/examples/AlarmClock/AlarmClock.pde | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/RTC/examples/AlarmClock/AlarmClock.pde b/libraries/RTC/examples/AlarmClock/AlarmClock.pde index fca3676d..bc14006f 100644 --- a/libraries/RTC/examples/AlarmClock/AlarmClock.pde +++ b/libraries/RTC/examples/AlarmClock/AlarmClock.pde @@ -179,6 +179,9 @@ void loop() { } prevHour = 24; // Force an update of the main screen. findNextAlarm(); // Update the time of the next alarm event. + } else if (event == LCD_BUTTON_SELECT) { + // Pressing select will quickly return to the front screen. + mainForm.setCurrentField(&frontScreen); } // If the alarm is playing and a button was pressed, then turn it off.