Firmware for a ESP32-2432S032 2.8" TFT (resistive) touchscreen module to provide the following features:
- Clock
- Synchronized via NTP
- Weather for the next 15 hours
- Temperature and weather symbol, courtesy of the Finnish Meteorological Institute
- Public transport schedule for a couple of near bus/tram stops in Helsinki, Finland
- Similar in style to the schedules you see on bus stops nowadays (https://omatnaytot.hsl.fi/createview).
The device has no interactive features other than waking up the display by tapping the screen.
The device dims the backlight after a short period of inactivity. Then, after further inactivity, the display is put into sleep. The display can be awakened by tapping on it anywhere. While the display is asleep, the weather and transport schedules are updated only once an hour, which is good enough to keep the weather up to date.
The UI is implemented with LVGL. SquareLine Studio software was used to design the UIs, and export the bare UI elements into code. Based on the esp32-smartdisplay library's LVGL configs.
UI design |
---|
Mounted on the wall |
- Copy
include/secrets.h.example
toinclude/secrets.h
and fill in the secrets - Uncomment the "Uncomment these if you want to flash over USB" portion of
platformio.ini
and comment out the OTA portion - Flash to your device
Now that the OTA functionality is flashed, use OTA for following updates if you want to:
4. Copy upload_config.json.example
to upload_config.json
- Set the same OTA password as in
secrets.h
- Do reverse of step 2 above where you comment out the OTA upload config
Based on: https://www.printables.com/model/577921-p1touch-sunton-esp32-2432s028r-case-alien3d-deck-r
3D files in docs/enclosure
MIT License. See LICENSE.
- FMI's open weather data is licensed under CC-BY-4.0. Ilmatieteen laitoksen avoin data. https://en.ilmatieteenlaitos.fi/open-data-licence.
- Public transport data comes from Digitransit's APIs. © Digitransit 2023 licensed under CC-BY-4.0.