File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 1- #include " MoonPhase.h "
1+ #include < moonPhase.h >
22
3- const int year = 2018 ;
4- const int month = 4 ;
5- const int day = 12 ;
6- const double hour = 22.50 ; /* 22:30 */
7-
8- MoonPhase MoonPhase; /* include a MoonPhase instance */
3+ moonPhase moonPhase; /* include a MoonPhase instance */
94
105void setup () {
116 Serial.begin (115200 );
127 Serial.println ();
13- Serial.println ( " MoonPhase simple example." );
8+ Serial.println ( " moonPhase simple example." );
149
15- MoonPhase::moonData moon; /* variable to receive the data */
10+ moonData_t moon; /* variable to receive the data */
1611
17- moon = MoonPhase .getInfo ( year, month, day, hour );
12+ moon = moonPhase .getInfo (); // get the current moon phase (1/1/1970 at about 00:00:00 UTC )
1813
1914 Serial.print ( " Moon phase angle: " );
2015 Serial.print ( moon.angle ); /* angle is a integer between 0-360 */
You can’t perform that action at this time.
0 commit comments