mirror of
https://github.com/taigrr/arduinolibs
synced 2025-01-18 04:33:12 -08:00
Rearrange the settings fields
Changing alarms will be more common than changing times and dates so put the alarm settings first.
This commit is contained in:
parent
9c60d94909
commit
dce1ede576
@ -70,14 +70,14 @@ RTCAlarm nextAlarm;
|
|||||||
// Create the main form and its fields.
|
// Create the main form and its fields.
|
||||||
Form mainForm(lcd);
|
Form mainForm(lcd);
|
||||||
FrontScreenField frontScreen(mainForm);
|
FrontScreenField frontScreen(mainForm);
|
||||||
SetTime setTime(mainForm, "Set current time");
|
|
||||||
SetDate setDate(mainForm, "Set current date");
|
|
||||||
BoolField hourMode(mainForm, "Hour display", "24 hour clock", "12 hour clock", false);
|
|
||||||
SetAlarm alarm1(mainForm, "Alarm 1", 0);
|
SetAlarm alarm1(mainForm, "Alarm 1", 0);
|
||||||
SetAlarm alarm2(mainForm, "Alarm 2", 1);
|
SetAlarm alarm2(mainForm, "Alarm 2", 1);
|
||||||
SetAlarm alarm3(mainForm, "Alarm 3", 2);
|
SetAlarm alarm3(mainForm, "Alarm 3", 2);
|
||||||
SetAlarm alarm4(mainForm, "Alarm 4", 3);
|
SetAlarm alarm4(mainForm, "Alarm 4", 3);
|
||||||
IntField alarmTimeout(mainForm, "Alarm timeout", 2, 10, 1, 2, " minutes");
|
IntField alarmTimeout(mainForm, "Alarm timeout", 2, 10, 1, 2, " minutes");
|
||||||
|
SetTime setTime(mainForm, "Set current time");
|
||||||
|
SetDate setDate(mainForm, "Set current date");
|
||||||
|
BoolField hourMode(mainForm, "Hour display", "24 hour clock", "12 hour clock", false);
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
// Reduce power consumption on I/O pins we don't need.
|
// Reduce power consumption on I/O pins we don't need.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user