Skip to content

OPHoperHPO/lilygo-ttgo-twatch-2020-micropython

This branch is 26 commits ahead of, 5297 commits behind lvgl/lv_micropython:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

64389d2 Β· Nov 1, 2020
Nov 1, 2020
Jun 30, 2020
Apr 7, 2020
Jul 23, 2020
Jun 25, 2020
Jul 9, 2020
Jul 31, 2017
Jul 4, 2020
Jul 24, 2020
Jul 4, 2020
Jun 30, 2020
Jul 1, 2020
Jun 3, 2019
Jun 18, 2020
Jul 4, 2020
Jun 26, 2020
Jul 12, 2019
Jun 12, 2020
Nov 1, 2019
Jun 12, 2020
May 29, 2019
Nov 1, 2020
Jun 4, 2019

Repository files navigation

🐍 MicroPython for LilyGO TTGO T-Watch-2020 🐍


πŸ“„ Description:

This is a fork of the official version of the micropython v1.12 with bluetooth support.
This micropython fork is SPECIALLY sharpened and designed for LilyGO TTGO T-Watch-2020-V1 watches.
Other TTGO watch models are not supported!


πŸŽ† Integrated libraries:

  1. bma423 - Low-g driver acceleration sensor.
    Written in C by lewisxhe.
    Was taken from here

  2. pcf8563 - Real-time clock/calendar driver.
    Written in Python by lewisxhe.
    Was taken from here

  3. lvgl - Popular embedded graphics library.
    Written in C.

  4. ft6x36 - Touch screen driver.
    Written in C.
    Was taken from here.

  5. AXP202 - Advanced multi-channel power management chip driver.
    Written in Python.
    Updated to latest version by Anodev.
    Was taken from here.

  6. st7789_lvgl - Display driver.
    Written in C.
    Was taken from here.

  7. ttgo - Port of the official library for LilyGo TTGO watches.
    Written in Python by Anodev.

  8. ir - Driver for ir sender.
    Written in C.
    Was taken from here.

Examples of using these libraries are located in the examples/ttgo/ folder
For api look ports/esp32/boards/LILYGO_T_WATCH_2020_V1 folder


⬇️ Download prebuild firmware:

Download

Versions of the programs that were used to build the image:

  1. ESP-IDF - 4.0
  2. Micropython - 1.12
  3. lvgl - 7.*

See the latest branch for the latest micropython version.


πŸ”¨ Build Instructions

🧷 WARNING:

Please set ESPIDF parameter for the esp-idf install dir.
It needs to match Micropython expected esp-idf, otherwise a warning will be displayed (and build will probably fail)
For more details refer to Setting up the toolchain and ESP-IDF
For more details please refer to Micropython ESP32 README.

🏷 Commands:

  1. Install all important libraries via sudo apt-get install build-essential libreadline-dev libffi-dev git pkg-config libsdl2-2.0-0 libsdl2-dev python
  2. Clone this repo via git clone https://github.com/OPHoperHPO/lilygo-ttgo-twatch-2020-micropython
  3. Clone all submodules via git submodule update --init --recursive
  4. Configure esp-idf and toolchain
  5. Edit paths to esp-idf and toolchain in makefile in ports/esp32
  6. Build mpy-cross via make -C mpy-cross
  7. Build micropython and flash it via make -C ports/esp32 deploy

πŸ’΅ Support me:

You can thank me for developing any of my projects, provide financial support for developing new projects and buy me a small cup of coffee.β˜•
Just support me on these platforms:


πŸ“„ More information: