Git Product home page Git Product logo

ttgo_twatch_library's Introduction

English | δΈ­ζ–‡

The code bin will demonstrate the basic functionality of T-Watch, including all on-board chips from T-Watch, using the latest lvgl6.0 as the display graphics framework.

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 6.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

Installing

  • 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:

  • Since Twatch uses a special IO as the SD interface, please remove the SD card when downloading the program.

About power consumption:

  • Currently off the screen, turn off WiFi, Bluetooth and other peripherals consume about 4mA (non-deep sleep), turn on the screen power, do not turn on WiFi, Bluetooth and other peripherals around 65mA, please refer to example -> SimpleWatch for the specific code.

    Off screen power consumption

    Open screen power consumption

Architecture diagram

Core Board Pinout

TFT

ESP32 Core GPIO5 GPIO19 GPIO18 GPIO27
ST7789V CS MOSI SCLK DC

Button

ESP32 Core GPIO36
User Button Button

Sensor

ESP32 Core GPIO21 GPIO22 GPIO39
BMA423 SDA SCL Interrupt

PMU

ESP32 Core GPIO21 GPIO22 GPIO35
AXP202 SDA SCL Interrupt

RTC

ESP32 Core GPIO21 GPIO22 GPIO37
PCF8563 SDA SCL Interrupt

TOUCH

ESP32 Core GPIO23 GPIO32 GPIO38
FT6236U SDA SCL Interrupt

TF Card

ESP32 Core GPIO13 GPIO15 GPIO2 GPIO14
TF Card CS MOSI MISO SCLK

Bottom plate Pinout

Standard

ESP32 Core GPIO33 GPIO25 GPIO21 GPIO22
Standard Motor Speaker SDA SCL
  • Onboard SD card slot

SIM800L

ESP32 Core GPIO14 GPIO15 GPIO4 GPIO33 GPIO34
SIM800L RST PWKEY BOOST_CTRL TX RX
  • No onboard SD card slot

MPR121

ESP32 Core GPIO21 GPIO22
MPR121 SDA SCL
  • Onboard SD card slot

S7XG_Lora & GPS

ESP32 Core GPIO33 GPIO34
S7XG_Lora TX RX
  • Onboard SD card slot

More interesting projects:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.