Browse Source

added notes for the PSA library

master
Luis Rodil-Fernandez 2 years ago
parent
commit
87e2cfd3ae
  1. 4
      lib/sunpos/README.md
  2. 14
      src/main.cpp

4
lib/sunpos/README.md

@ -0,0 +1,4 @@
This code is public domain by the Plataforma Solar Almeria
http://www.psa.es/sdg/sunpos.htm
All times are expected in UTC/GMT

14
src/main.cpp

@ -76,6 +76,20 @@ void draw_sunpos() {
display.setTextColor(SSD1306_WHITE); display.setTextColor(SSD1306_WHITE);
display.setCursor(0, 0); display.setCursor(0, 0);
//display.print(F("lat ------> ")); //display.print(F("lat ------> "));
display.print(F("time ...... "));
display.print(GPS.hour);
display.print(F(":"));
display.print(GPS.minute);
display.print(F(":"));
display.print(GPS.seconds);
display.println();
display.print(F("date ...... "));
display.print(GPS.day);
display.print(F("/"));
display.print(GPS.month);
display.print(F("/"));
display.print(GPS.year);
display.println();
display.print(F("lat ....... ")); display.print(F("lat ....... "));
display.print((double)sun.latitude, 4); display.print((double)sun.latitude, 4);
display.println(); display.println();

Loading…
Cancel
Save