基于ESP32的墨水屏日历,提供天气,老黄历以及F1赛历等功能
主页显示:天气和空气指数信息,本月日历信息,当日农历及节假日信息,今日事宜
翻页显示:F1 2023 正赛日历
2.7'' E-ink display from Adafruit that shows the information of weather, month calendar, lunar calendar as well as F1 2023 season calendar. The whole kit was developed based on an ESP32.
Main page displays: month calendar, lunar calendar, weather and air quality, etc.
Press button to switch page display, which shows the F1 2023 Season Calendar.
https://oshwhub.com/zhangshunlu/esp_calendar
需在main.h
文件中修改以下信息,其中MY_CITY
和 MY_COUNTRY_CODE
的值目前仅支持Shanghai和CN,其他城市和地区需修改相应代码
Edit the following part in the file main.h
, note that the value of MY_CITY
and MY_COUNTRY_CODE
supports only for Shanghai
and CN
now, you will have to modify the corresponding functions in the source code to match your location.
#define WIFI_SSID "YOUR WIFI"
#define WIFI_PASSWORD "YOUR WIFI PASSWORD"
#define QWEATHER_API_KEY "YOUR API KEY" // 和风天气API
#define MY_CITY "Shanghai"
#define MY_COUNTRY_CODE "CN"
#define JUHE_API_KEY "YOUR API KEY" // 聚合数据API
本项目电路仅支持Adafruit的2.7寸墨水屏模块,如需使用其他屏幕,需对电路进行修改。
软件部分可以使用GxEPD库,支持市面上大部分墨水屏。
The hardware circuit only applies for the the 2.7'' display from Adafruit. If you are using other displays, the circuit needs to be modified.
The nice library GxEPD supports a great number of E-ink displays, you can use this library to best suits your display.