Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
weather.h
Go to the documentation of this file.
1#ifndef _PAPERDINK_WEATHER_H_
2#define _PAPERDINK_WEATHER_H_
3
5
6#define DEBUG Serial
7
9{
10public:
11char city[20];
12char country[20];
16float rain;
17float snow;
18
19int8_t fetch_data(const char *city, const char *country, const char *owm_api_id, const char *units = "M");
20void display_weather_text_center(GxEPD2_GFX& display, uint16_t x, uint16_t y, uint16_t w);
21void display_weather_style1(GxEPD2_GFX& display, uint16_t x, uint16_t y);
22void display_weather_style2_center(GxEPD2_GFX& display, uint16_t x, uint16_t y, uint16_t w);
23};
24
26
27#endif /* _PAPERDINK_WEATHER_H_ */
int8_t fetch_data(const char *city, const char *country, const char *owm_api_id, const char *units="M")
Definition weather.cpp:46
void display_weather_style1(GxEPD2_GFX &display, uint16_t x, uint16_t y)
Definition weather.cpp:133
void display_weather_text_center(GxEPD2_GFX &display, uint16_t x, uint16_t y, uint16_t w)
Definition weather.cpp:121
char weather_string[10]
Definition weather.h:13
void display_weather_style2_center(GxEPD2_GFX &display, uint16_t x, uint16_t y, uint16_t w)
Definition weather.cpp:171
PaperdinkUIWeatherClass Paperdink_Weather
Definition weather.cpp:195