jeffmer / TTGO-T-watch-2020-Micropython-OS

All micropython watch software for TTGO T-watch 2020 V1, V2 & V3
The Unlicense
19 stars 5 forks source link

@micropython.viper #19

Open timonoko opened 6 months ago

timonoko commented 6 months ago

Produces "invalid arch" error. Commented those out and now it works.

thiswillbeyourgithub commented 6 months ago

What lines are you referring to? What watch are you using? What firmware did you use?

timonoko commented 6 months ago

TTGO-T-watch-2020.V3

In src/graphics.py line 7: @micropython.viper In src/drivers/bma423.py line 10: @micropython.viper

mpy-cross --version: MicroPython v1.21.0 on 2023-10-07; mpy-cross emitting mpy v6.1

Seems to work splendidly without any vipers !

thiswillbeyourgithub commented 6 months ago

I don't get it. The firmware in this folder is supposed to be 1.22

Where did you get the 1.21 version?

timonoko commented 6 months ago

The number 1.21 came from "mpy-cross --version".

I used the firmware version 1.22.

There was more vipers in pngtile.py. They may be important, because opensteetmap.py does not show any tiles.

thiswillbeyourgithub commented 6 months ago

This might be related to this issue I had when trying to update the firmware.

I just fixed it for my case. Thank you for making me try again.

Have you properly compiled mpy-cross before running compile.sh?

timonoko commented 6 months ago

I got the mpy-cross from "pip install mpy-cross".

timonoko commented 6 months ago

I have totally solved the problem. I do not even try to mpy-compile those files with vipers.

thiswillbeyourgithub commented 6 months ago

Great to hear!

By any chance, are you comfortable with C?

timonoko commented 6 months ago

C is little bit different than 40 years ago. Weird error messages is the main product nowadays, when I try.