Weather Station and Photo Frame from InkPlate 10[
You could use touch pad to switch from three functions: weather station, web photo and local photo. The content will be updated every 4 hours and could be modified via
*_DELAY_US in weather_photo_calendar.ino.
To use for your own, please make sure
settings.hin your root directory with the following fields:
int SECRET_TIMEZONEyour time zone;
char SECRET_CITYlatitude and longitude of the location for weather, e.g., “1.234,5,678”. Make sure your location could be found by
char *SECRET_SSIDyour WIFI SSID;
char *SECRET_PASSyour WIFI password;
char *SECRET_PHOTO_URLthe url for web photo frame;
- for local photo, please put your images in microsd card’s
einkdirectory and images should be png, which have name like 0.png, 1.png. The name should start from 0 and continuous increasing.
It is mostly built from the examples provided by InkPlate 10, including:
Some of important changes I made:
- refactor code to isolate the logics of each of those examples;
- fetch the last touch pad event from interrupte register instead of using loop pool
Integrate Google Calendar functionalities. However, It is not currently working which will causes infinitely wake-sleep-loop, though not intended.
One possible reason is the adding Google Calendar there takes too much memory that hardware could support. Removing Google Calendar example or Google Calendar alones works perfectly.
You could check master branch, if you want to help.