OPHoperHPO / lilygo-ttgo-twatch-2020-micropython

:snake:MicroPython for LilyGO TTGO T-Watch-2020:snake:
MIT License
57 stars 12 forks source link
bma423 ft6x36 lilygo lilygo-ttgo-t-watch-2020 lvgl micropython smartwatch st7789 st7789v t-watch-2020

:snake: MicroPython for LilyGO TTGO T-Watch-2020 :snake:


πŸ“„ 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


    :arrow_down: Download prebuild firmware:

    Download

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

  9. ESP-IDF - 4.0

  10. Micropython - 1.12

  11. 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:

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

  13. Clone this repo via git clone https://github.com/OPHoperHPO/lilygo-ttgo-twatch-2020-micropython

  14. Clone all submodules via git submodule update --init --recursive

  15. Configure esp-idf and toolchain

  16. Edit paths to esp-idf and toolchain in makefile in ports/esp32

  17. Build mpy-cross via make -C mpy-cross

  18. 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: