mirror of https://github.com/sqfmi/Watchy.git
Updated because is gone and calls now.
parent
581a561aed
commit
5f129ecb84
|
@ -1,12 +1,11 @@
|
||||||
#include "Watchy_7_SEG.h"
|
#include "Watchy_7_SEG.h"
|
||||||
|
|
||||||
Watchy7SEG watchy;
|
Watchy7SEG watchy;
|
||||||
|
|
||||||
void setup(){
|
void setup(){
|
||||||
watchy.init();
|
// 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(){}
|
}
|
||||||
|
|
||||||
|
void loop(){}
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@ void Watchy7SEG::drawWeather(){
|
||||||
display.setCursor(159 - w - x1, 136);
|
display.setCursor(159 - w - x1, 136);
|
||||||
}
|
}
|
||||||
display.println(temperature);
|
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;
|
const unsigned char* weatherIcon;
|
||||||
|
|
||||||
//https://openweathermap.org/weather-conditions
|
//https://openweathermap.org/weather-conditions
|
||||||
|
|
Loading…
Reference in New Issue