mirror of
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library.git
synced 2026-03-03 06:44:10 +01:00
3eb040e2c8a397dcc03f303238dd886eb59dc9b4
🌟LilyGO T-Watch🌟
English | 中文
The code bin will demonstrate the basic functionality of T-Watch, including all on-board chips from T-Watch, using the lvgl 6.1.2 as the display graphics framework.
⭐ News
- Currently there are multiple versions of T-Watch, if you use T-Watch-2020 version T-Watch, please define the LILYGO_TWATCH_2020_V1 macro above the sketch
#include <TTGO.h>to preset the program Run inT-Watch-2020 version hardware. - Some sample programs cannot be run on special versions of hardware, such as the
UserButtonsample program, which cannot be run in the T-Watch-2020 version, because this version of the hardware does not have physical buttons
🚀 Characteristics
- The library already contains all the hardware drivers for
T-Watch - Using TFT_eSPI as the display driver, you can directly call TFT_eSPI through the construction object.
- Using lvgl 6.1.2 as the display graphics framework, the driver method has been implemented, you only need to call lvgl api according to your own needs.
- For the use of lvgl please refer to lvgl docs
🔷 Install
- Download a zipfile from github using the "Download ZIP" button and install it using the IDE ("Sketch" -> "Include Library" -> "Add .ZIP Library..."
- Clone this git repository into your sketchbook/libraries folder. For more info, see https://www.arduino.cc/en/Guide/Libraries
🔶 How to find the sample program
- In the Arduino board select
TTGO T-Watch - In the Arduino File -> Examples -> TTGO T-Watch
🔷 Note
- If you don't have the
TTGO T-Watchoption in your board manager, please update the esp32 board as follows:- Using Arduino IDE Boards Manager (preferred)
- Using Arduino IDE with the development repository
🔶 Precautions
- Since Twatch uses a special IO as the SD interface, please remove the SD card when downloading the program.
🔷 Other
🔶 More interesting projects
Languages
C
97.4%
C++
2.5%