mirror of
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library.git
synced 2026-03-10 01:56:57 +01:00
ddadf3ab54c076e276a22e7d0e42e5b13f103c07
Function problems: * The function doesn't wait for NTP to actually happen, it's just started - so the clock is still wrong. * The current time is passed as static data, and is then pushed into the RTC after the UI interaction - making it stale. * NTP may complete during the UI interaction, and then get stomped on. Simply start the "poll now" sequence directly, and don't worry about the UI for it.
🌟LilyGO T-Watch🌟
English | 中文
⭐ News
- In order to be compatible with multiple versions of T-Watch, all examples include a
config.hfile. For the first use, you need to define the T-Watch model you use in theconfig.hfile - In the
config.hfile, you can also see similar definitions, such as LILYGO_WATCH_LVGL, LILYGO_WATCH_HAS_MOTOR, this type of definition, it will be responsible for opening the defined module function, all definitions Will be available here View - Most of the examples are only used as hardware function demonstrations. This library only completes some initialization work and some demonstrations. For more advanced gameplay, please see TTGO.h, to understand how to initialize, after being familiar with it, you can completely leave this library for more advanced gameplay
-
About API, please check the source code
-
The latest factory firmware is made by sharandac/My-TTGO-Watch
🚀 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 7.0.0 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
- T-Watch-2019 : Since Twatch uses a special IO as the SD interface, please remove the SD card when downloading the program.
🔷 Other
- Click for details of power consumption
- Pin Map Click to View
- 3D Shell
- Hardware Resource
- Acsip S76/78 Library&Examples
🔶 More interesting projects
Languages
C
97.4%
C++
2.5%









