From 3eb040e2c8a397dcc03f303238dd886eb59dc9b4 Mon Sep 17 00:00:00 2001 From: lewis he Date: Thu, 7 May 2020 18:23:12 +0800 Subject: [PATCH] Update README , and examples directions --- README.MD | 10 +++++++--- docs/details_cn.md | 6 ++++++ examples/SimpleWatch/SimpleWatch.ino | 3 +++ examples/Thermometer/Thermometer.ino | 3 +++ examples/TouchPad/TouchPad.ino | 1 + examples/lvgl_base/lvgl_base.ino | 2 ++ examples/lvgl_button/lvgl_button.ino | 2 ++ 7 files changed, 24 insertions(+), 3 deletions(-) diff --git a/README.MD b/README.MD index a44ea27..f129369 100644 --- a/README.MD +++ b/README.MD @@ -5,13 +5,17 @@ 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

+ +1. 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 ` to preset the program Run in `T-Watch-2020 version hardware`. +2. Some sample programs cannot be run on special versions of hardware, such as the `UserButton` sample program, which cannot be run in the **T-Watch-2020** version, because this version of the hardware does not have physical buttons

🚀 Characteristics

1. The library already contains all the hardware drivers for `T-Watch` -1. Using **TFT_eSPI** as the display driver, you can directly call **TFT_eSPI** through the construction object. -1. 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. -1. For the use of lvgl please refer to **[lvgl docs](https://docs.littlevgl.com/en/html/index.html)** +2. Using **TFT_eSPI** as the display driver, you can directly call **TFT_eSPI** through the construction object. +3. 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. +4. For the use of lvgl please refer to **[lvgl docs](https://docs.littlevgl.com/en/html/index.html)**

🔷 Install

diff --git a/docs/details_cn.md b/docs/details_cn.md index 2dfffcf..4b87e59 100644 --- a/docs/details_cn.md +++ b/docs/details_cn.md @@ -4,6 +4,12 @@ 该代码仓将演示**T-Watch**的基础功能,包含T-Watch所有板载芯片,该项目使用**lvgl 6.1.2**作为显示图形框架 + +

新闻

+ +1. 当前T-Watch有多种版本,如果使用**T-Watch-2020**版本T-Watch,请在草图`#include ` 上方定义**LILYGO_TWATCH_2020_V1**宏,以预设程序运行在`T-Watch-2020版本硬件`中. +2. 有些示例程序无法运行在特殊版本的硬件中,比如`UserButton`示例程序,在**T-Watch-2020**版本中就无法运行,因为该版本硬件没有物理按键 +

特性

1. 该库已经包含`T-Watch`所有硬件驱动 diff --git a/examples/SimpleWatch/SimpleWatch.ino b/examples/SimpleWatch/SimpleWatch.ino index de20d5d..d8527cc 100644 --- a/examples/SimpleWatch/SimpleWatch.ino +++ b/examples/SimpleWatch/SimpleWatch.ino @@ -6,6 +6,9 @@ The off-screen standby (not deep sleep) current is about 4mA. Select standard motherboard and standard backplane for testing. Created by Lewis he on October 10, 2019. */ + +// #define LILYGO_TWATCH_2020_V1 // If you are using T-Watch-2020 version, please open this macro definition + #include #include "freertos/FreeRTOS.h" #include "freertos/task.h" diff --git a/examples/Thermometer/Thermometer.ino b/examples/Thermometer/Thermometer.ino index 9f4587b..46bcafb 100644 --- a/examples/Thermometer/Thermometer.ino +++ b/examples/Thermometer/Thermometer.ino @@ -13,6 +13,9 @@ cd ~/Arduino/libraries git clone https://github.com/bblanchon/ArduinoJson.git */ +// #define LILYGO_TWATCH_2020_V1 // If you are using T-Watch-2020 version, please open this macro definition + + #include #include "freertos/FreeRTOS.h" #include "freertos/task.h" diff --git a/examples/TouchPad/TouchPad.ino b/examples/TouchPad/TouchPad.ino index 55ffe7b..811172d 100644 --- a/examples/TouchPad/TouchPad.ino +++ b/examples/TouchPad/TouchPad.ino @@ -1,3 +1,4 @@ +// #define LILYGO_TWATCH_2020_V1 // If you are using T-Watch-2020 version, please open this macro definition #include diff --git a/examples/lvgl_base/lvgl_base.ino b/examples/lvgl_base/lvgl_base.ino index 3365f7f..47eb828 100644 --- a/examples/lvgl_base/lvgl_base.ino +++ b/examples/lvgl_base/lvgl_base.ino @@ -1,3 +1,5 @@ +// #define LILYGO_TWATCH_2020_V1 // If you are using T-Watch-2020 version, please open this macro definition + #include TTGOClass *ttgo; diff --git a/examples/lvgl_button/lvgl_button.ino b/examples/lvgl_button/lvgl_button.ino index 42484db..aa20848 100644 --- a/examples/lvgl_button/lvgl_button.ino +++ b/examples/lvgl_button/lvgl_button.ino @@ -1,4 +1,6 @@ +// #define LILYGO_TWATCH_2020_V1 // If you are using T-Watch-2020 version, please open this macro definition + #include TTGOClass *ttgo;