Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@micropython.viper #19

Open
timonoko opened this issue Dec 22, 2023 · 9 comments
Open

@micropython.viper #19

timonoko opened this issue Dec 22, 2023 · 9 comments

Comments

@timonoko
Copy link

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

@thiswillbeyourgithub
Copy link
Contributor

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

@timonoko
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

thiswillbeyourgithub commented Dec 22, 2023

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
Copy link
Author

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

@timonoko
Copy link
Author

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

@thiswillbeyourgithub
Copy link
Contributor

Great to hear!

By any chance, are you comfortable with C?

@timonoko
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants