TTGO T-WATCH-2020

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
picpic020961
Posts: 15
Joined: Thu Feb 18, 2021 4:24 pm

Re: TTGO T-WATCH-2020

Post by picpic020961 » Sat Feb 20, 2021 1:56 pm

Bonjour uraich ,
good job !
the display is speed !
now a good plateforme : micropython , lvgl , speed display.
Thank's

picpic020961
Posts: 15
Joined: Thu Feb 18, 2021 4:24 pm

compile micropython (lvgl) for unix

Post by picpic020961 » Sun Feb 21, 2021 7:18 am

Bonjour Uraich
try to build micropython (lvgl) for unix as in your post.
but issue :
-------------------------------------
xxxxx@LIN0141157:~/twatch-2020-micropython/ports/unix$ make V=1 VARIANT=dev
python3 ../../py/makeversionhdr.py build-dev/genhdr/mpversion.h
python3 ../../tools/makemanifest.py -o build-dev/frozen_content.c -v "MPY_DIR=../.." -v "MPY_LIB_DIR=../../../micropython-lib" -v "PORT_DIR=/home/Charles.Rayer/twatch-2020-micropython/ports/unix" -v "BOARD_DIR=" -b "build-dev" -f"-mcache-lookup-bc" variants/dev/manifest.py
Traceback (most recent call last):
File "../../tools/makemanifest.py", line 344, in <module>
main()
File "../../tools/makemanifest.py", line 254, in main
include(input_manifest)
File "../../tools/makemanifest.py", line 51, in include
with open(manifest) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/xxxxx/twatch-2020-micropython/ports/unix/variants/dev/manifest.py'
../../py/mkrules.mk:142 : la recette pour la cible « build-dev/frozen_content.c » a échouée
make: *** [build-dev/frozen_content.c] Erreur 1
xxxxx@LIN0141157:~/twatch-2020-micropython/ports/unix$
-------------------------------------------
some tricks for dowload/clone or other ?
Thank's for help and
Regards

ondiiik
Posts: 1
Joined: Mon Oct 04, 2021 9:39 am

Re: TTGO T-WATCH-2020

Post by ondiiik » Mon Oct 04, 2021 9:53 am

Hello,

... for those who is still interested in topic of this hardware and Micropython, you can keep an eye here:

https://github.com/ondiiik/micropython-twatch-2020

Here is ESP32 port of Micropython 1.17 made for T-WATCH-2020 including LVGL and most of required drivers. This port also changing basic flash layout, so there is more space for more LVGL fonts and for file system utilizing entire FLASH. As this hardware have 8MB PSRAM, but 4MB can be used only (without memory mapping), there is also driver which provides upper for 4MB as block device, so RAM-drive based temporary file system can be built on that as well (file system have to be recreated after each boot - e.g. from boot.py - as PSRAM state after reboot is undefined).

I have not that much spare time, but I'm trying to sync it with mainstream time after time.

Just note that firmware shall be built as board TWATCH_2020

Enjoy it ;)

uraich
Posts: 56
Joined: Tue Mar 26, 2019 12:24 pm

Re: TTGO T-WATCH-2020

Post by uraich » Tue Oct 05, 2021 7:25 pm

Thanks, I will give it a try

picpic020961
Posts: 15
Joined: Thu Feb 18, 2021 4:24 pm

Re: TTGO T-WATCH-2020

Post by picpic020961 » Tue Oct 12, 2021 2:05 pm

me too when free time

uraich
Posts: 56
Joined: Tue Mar 26, 2019 12:24 pm

Re: TTGO T-WATCH-2020

Post by uraich » Thu Oct 14, 2021 5:31 pm

As promised I tried to compile for the TWATCH and I had quite some trouble. Before trying the t-watch I tried the standard lv_micropython and this already did not work. My micropython (without lvgl) is based on the newest esp-idf and this does not seem to work on lv_micropython. Amir Gonnen, the guy behind lv_bindings told me to try with esp-idf v4.2, which, he said, should work, but it also didn't for me.
Finally, I figured out that the problem was the xtensa compiler version I use. For the newest esp-idf you must use the 2021 version of the compiler, for version 4.2 the 2020 version is needed.
Changing the compiler version and retro-grading to esp-idf v4.2 allowed me to re-build lv_micropython.
Then I copied the TWATCH_2020 board information and a few sdkconfig files used by it to this new lv_micropython. Like this I was able to build the TWATCH version.
Now I have to check if I can create some lvgl widgets on the watch.

twister077
Posts: 1
Joined: Thu Jan 13, 2022 7:34 pm

Re: TTGO T-WATCH-2020

Post by twister077 » Thu Jan 13, 2022 7:41 pm

Nice that the lilygo watch 2020 is running on the new micropython version. Any prebuild firmware so others can test this build? Thx.

Midona2021
Posts: 1
Joined: Fri Mar 04, 2022 2:36 pm

Re: TTGO T-WATCH-2020

Post by Midona2021 » Fri Mar 04, 2022 2:59 pm

Hello all,

I am new in this area and have little experience.

3 months ago I bought the LilyGo T-Watch 2020 v1 and I want to program it in Micropython.

I was able to successfully integrate the display, wifi and time.

My goal is to program the sleep modes.
- active mode
- light sleep mode
- deep sleep mode

I want to measure the power consumption of the different modes.

How can I measure the power consumption on the Watch ?
What are the possibilities ?

I am grateful for any information and help.

Many greetings

Mira

Post Reply