Skip to content

y0no/lilygo-ttgo-twatch-2020-micropython

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 1 commit ahead, 2 commits behind OPHoperHPO:master.

Latest commit

 

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
lib
 
 
 
 
 
 
 
 
py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

🐍MicroPython for LilyGO TTGO T-Watch-2020🐍

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 87.6%
  • Python 7.7%
  • C++ 3.4%
  • Makefile 1.1%
  • Assembly 0.1%
  • Shell 0.1%