Add comment & update fcn_declare.
This commit is contained in:
parent
6fa136da0c
commit
34eee005a8
@ -135,7 +135,7 @@ bool checkCountdown();
|
|||||||
void setCountdown();
|
void setCountdown();
|
||||||
byte weekdayMondayFirst();
|
byte weekdayMondayFirst();
|
||||||
void checkTimers();
|
void checkTimers();
|
||||||
bool isDayTime();
|
int getSunriseUTC(int year, int month, int day, float lat, float lon, bool sunset=false);
|
||||||
|
|
||||||
//overlay.cpp
|
//overlay.cpp
|
||||||
void initCronixie();
|
void initCronixie();
|
||||||
|
@ -257,8 +257,6 @@ byte weekdayMondayFirst()
|
|||||||
return wd;
|
return wd;
|
||||||
}
|
}
|
||||||
|
|
||||||
int getSunriseUTC(int year, int month, int day, float lat, float lon, bool sunset=false);
|
|
||||||
|
|
||||||
void checkTimers()
|
void checkTimers()
|
||||||
{
|
{
|
||||||
if (lastTimerMinute != minute(localTime)) //only check once a new minute begins
|
if (lastTimerMinute != minute(localTime)) //only check once a new minute begins
|
||||||
@ -331,6 +329,7 @@ void checkTimers()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define ZENITH -0.83
|
#define ZENITH -0.83
|
||||||
|
// get sunrise (or sunset) time (in minutes) for a given day at a given geo location
|
||||||
int getSunriseUTC(int year, int month, int day, float lat, float lon, bool sunset) {
|
int getSunriseUTC(int year, int month, int day, float lat, float lon, bool sunset) {
|
||||||
//1. first calculate the day of the year
|
//1. first calculate the day of the year
|
||||||
float N1 = floor(275 * month / 9);
|
float N1 = floor(275 * month / 9);
|
||||||
|
Loading…
Reference in New Issue
Block a user