Update 'dclock.ino'

This commit is contained in:
ivan 2021-03-13 21:47:39 +01:00
parent b96ca3f74d
commit 1bd9a30575
1 changed files with 10 additions and 8 deletions

View File

@ -21,15 +21,17 @@ float erisiansec; // Erisian second
// Custom settings: // Custom settings:
int brightnessPercent = 32; // Display brightness percentage value int brightnessPercent = 32; // Display brightness percentage value
long timezoneOffset = (-28800); // Erisian timezoneOffset. Formula for calculating: ((-5 christian chours) - (GMT hours)) long timezoneOffset = (-28800); // Erisian timezoneOffset. Formula for calculating:
// ((-5 christian chours) - (GMT hours))
// Examples: // Examples:
// GMT+3: ( (-5)-(+3) )*60*60 = -28800 // GMT+3: ( (-5)-(+3) )*60*60 = -28800
// GMT-0: ( (-5)-(0) )*60*60 = -18000 // GMT-0: ( (-5)-(0) )*60*60 = -18000
// GMT-3: ( (-5)-(-3) )*60*60 = -7200 // GMT-3: ( (-5)-(-3) )*60*60 = -7200
// GMT-5: ( (-5)-(-5) )*60*60 = 0 // GMT-5: ( (-5)-(-5) )*60*60 = 0
// GMT-7: ( (-5)-(-7) )*60*60 = 7200 // GMT-7: ( (-5)-(-7) )*60*60 = 7200
// The beginning of Discordian day (0 hours, 0 minutes, 0 seconds) coincides // The beginning of Discordian day (0 hours, 0 minutes,
// with the beginning of Christian day on Easter Island on winter time (GMT-5). // 0 seconds) coincides with the beginning of Christian
// day on Easter Island on winter time (GMT-5).
// Details: https://discordia.fandom.com/wiki/Erisian_Time // Details: https://discordia.fandom.com/wiki/Erisian_Time
void setup() { void setup() {
@ -46,7 +48,7 @@ void setup() {
display.print("HAIL_EriS"); // Shows display initialization display.print("HAIL_EriS"); // Shows display initialization
} }
pinMode(buttonPin, INPUT); // Button setting pinMode(buttonPin, INPUT); // Button setting
// Main thread thread initialization: // Main thread initialization:
mainThread.onRun(mainLoop); mainThread.onRun(mainLoop);
mainThread.setInterval(mainCheck); mainThread.setInterval(mainCheck);
} }