slootsky / TTGO_TWatch_Library

Home Page:https://www.aliexpress.com/item/33038999162.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌟LilyGO T-Watch🌟

English | 中文

⭐ News

  1. In order to be compatible with multiple versions of T-Watch, all examples include a config.h file. For the first use, you need to define the T-Watch model you use in the config.h file
  2. In the config.h file, 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
  3. 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

🚀 Characteristics

  1. The library already contains all the hardware drivers for T-Watch
  2. Using TFT_eSPI as the display driver, you can directly call TFT_eSPI through the construction object.
  3. 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.
  4. 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

🔶 Precautions

  • T-Watch-2019 : Since Twatch uses a special IO as the SD interface, please remove the SD card when downloading the program.

🔷 Other

🔶 More interesting projects

About

https://www.aliexpress.com/item/33038999162.html

License:MIT License


Languages

Language:C 98.1%Language:C++ 1.7%Language:Processing 0.1%Language:Python 0.1%Language:Objective-C 0.1%Language:Makefile 0.0%Language:Shell 0.0%