Programming: ESP8266
Check out my other articles / projects:
- ESP8266 as a Web Server
- ESP8266 Access Point configuration GUI
- ESP8266 / OLED Calendar
- ESP8266 / OLED Date Selector
ESP8266 / OLED Calendar
An ESP8266 / OLED display project that renders a calendar. Due to the small real estate available, the calendar provides configuration options that affect how the calendar is displayed (see examples below). The code uses the default 10pt font that comes with the OLED library but other fonts can be substituted but may result in the code needing some 'rejigging' - the line and character spacing are all defined at the start of the program.
Visit my GitHub repository to view the project and retrieve the latest code, notify me of errors and so forth. |
Background
The inspiration for this project came from rydepier's Arduino-and-OLED-Calendar project which was targeted at the Arduino and used a different library to drive the OLED. While rewriting it for the ESP8266, I used none of the original code.
This project relies on two separate GitHub projects :
- PaulStoffregen for his Time project and
- Squix78 for his esp8266-oled-ssd1306 library for these little OLED displays.
In Operation
The calendar provides a couple of configuration parameters that control its visual appearance and allow it to utilise the small real estate of the OLED effectively. Namely these are:
001 002 |
#define CAL_SHOW_6_ROWS_OF_DAYS false #define CAL_SHOW_MONTH_YEAR false |