Updated because is gone and calls now.

pull/132/head
Paco Hope 2021-12-29 15:01:03 -05:00
parent 581a561aed
commit 5f129ecb84
2 changed files with 12 additions and 13 deletions

View File

@ -1,12 +1,11 @@
#include "Watchy_7_SEG.h"
Watchy7SEG watchy;
void setup(){
watchy.init();
}
void loop(){}
#include "Watchy_7_SEG.h"
Watchy7SEG watchy;
void setup(){
// initialise weather to New York City, Celsius temperature, 30-minute updates, English language, SQFMI's API key
watchy.setupWeather(5128581, true, 30, String("en"), String("f058fe1cad2afe8e2ddc5d063a64cecb") );
watchy.init();
}
void loop(){}

View File

@ -124,7 +124,7 @@ void Watchy7SEG::drawWeather(){
display.setCursor(159 - w - x1, 136);
}
display.println(temperature);
display.drawBitmap(165, 110, strcmp(TEMP_UNIT, "metric") == 0 ? celsius : fahrenheit, 26, 20, DARKMODE ? GxEPD_WHITE : GxEPD_BLACK);
display.drawBitmap(165, 110, weatherCelsius == true ? celsius : fahrenheit, 26, 20, DARKMODE ? GxEPD_WHITE : GxEPD_BLACK);
const unsigned char* weatherIcon;
//https://openweathermap.org/weather-conditions