[中文在最后]
The automatic weather forecast based on ESP8266 and ST7735 refers to the ESP8266-ST7735-weather-station project.
- Install the Arduino IDE, which can be installed through the Windows 10 application store (only IDE is used, the hardware does not require Arduino)
- Install the development board (install from the development board manager) NodeMCU 1.0
- Install the dependent library (install from the management library) Adafruit_GFX 1.10.6
- Install the dependent library (install from the management library) Adafruit_ST7735 1.7.0
- Install the dependent library (install from the management library) ArduinoJson 5.10.1
- Modify the ssid, password (wifi hotspot and password) in the configure.h header file
- Modify APIKEY and CityID in configure.h header file. Please apply for this for free at openweathermap.org.
- Verification/Compile
- Upload to the development board
- The version of the dependent library: the version I used in the installation tutorial. Newer or older versions have not been tested, but it may be possible.
- If your development board is different from mine, then the wiring may be different, you must modify the Pins (in configure.h)
// Pins
#define TFT_CS D1
#define TFT_RST D2
#define TFT_RS D3
#define TFT_SDI D7
Mulan License, Version 2
基于ESP8266,ST7735的自动天气预报,参考了ESP8266-ST7735-weather-station 项目。
- 安装Arduino IDE,可以通过Windows10 的应用程序商店安装 (只用了IDE,硬件不需要Arduino)
- 安装开发板(从开发板管理器安装)NodeMCU 1.0
- 安装依赖库(从管理库安装)Adafruit_GFX 1.10.6
- 安装依赖库(从管理库安装)Adafruit_ST7735 1.7.0
- 安装依赖库(从管理库安装)ArduinoJson 5.10.1
- 修改configure.h 头文件中的ssid,password (wifi 热点和密码)
- 修改configure.h 头文件中的 APIKEY 和CityID。 这个请先在 openweathermap.org免费申请。
- 验证/编译
- 上传到开发板
- 依赖库的版本问题:安装教程中是我使用的版本。 更新或者更旧的版本没有测试过,但也许可以。
- 如果你的开发板与我不同,那么接线可能不同,必须修改Pins(在configure.h)
// Pins
#define TFT_CS D1
#define TFT_RST D2
#define TFT_RS D3
#define TFT_SDI D7
木兰宽松许可证, 第2版