Update README , and examples directions

This commit is contained in:
lewis he
2020-05-07 18:23:12 +08:00
parent 038ba72633
commit 3eb040e2c8
7 changed files with 24 additions and 3 deletions

View File

@@ -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.
<h2 align = "left">⭐ News </h2>
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 <TTGO.h>` 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
<h2 align = "left">🚀 Characteristics</h2>
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)**
<h2 align = "left">🔷 Install</h2>

View File

@@ -4,6 +4,12 @@
该代码仓将演示**T-Watch**的基础功能包含T-Watch所有板载芯片,该项目使用**lvgl 6.1.2**作为显示图形框架
<h2 align = "left">新闻</h2>
1. 当前T-Watch有多种版本,如果使用**T-Watch-2020**版本T-Watch,请在草图`#include <TTGO.h>` 上方定义**LILYGO_TWATCH_2020_V1**宏,以预设程序运行在`T-Watch-2020版本硬件`中.
2. 有些示例程序无法运行在特殊版本的硬件中,比如`UserButton`示例程序,在**T-Watch-2020**版本中就无法运行,因为该版本硬件没有物理按键
<h2 align = "left">特性</h2>
1. 该库已经包含`T-Watch`所有硬件驱动

View File

@@ -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 <TTGO.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

View File

@@ -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 <TTGO.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

View File

@@ -1,3 +1,4 @@
// #define LILYGO_TWATCH_2020_V1 // If you are using T-Watch-2020 version, please open this macro definition
#include <TTGO.h>

View File

@@ -1,3 +1,5 @@
// #define LILYGO_TWATCH_2020_V1 // If you are using T-Watch-2020 version, please open this macro definition
#include <TTGO.h>
TTGOClass *ttgo;

View File

@@ -1,4 +1,6 @@
// #define LILYGO_TWATCH_2020_V1 // If you are using T-Watch-2020 version, please open this macro definition
#include <TTGO.h>
TTGOClass *ttgo;