Installing micropython-esp32-ulp with mip on latest firmware esp32 #12184
-
Hello, I am trying to use the ULP on my esp32. For this I wish to install this: https://github.com/micropython/micropython-esp32-ulp/tree/master However the simple instruction of import upip
upip.install('micropython-esp32-ulp') does not work. I Found that this is because upip has been replaced by mip. import mip
mip.install('micropython-esp32-ulp')
mip.install('esp32-ulp')
Can someone please explain how I can get esp32-ulp installed on '3.4.0; MicroPython v1.20.0-327-gd14ddcbdb on 2023-07-27' |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I have not tried this, but according to the documentation, it is possible to install mip packages directly from github using the syntax mip.install("github:org/repo/path/foo.py") # Uses default branch
mip.install("github:org/repo/path/foo.py", version="branch-or-tag") # Optionally specify the branch or tag |
Beta Was this translation helpful? Give feedback.
-
It's not obvious how to install this. For a package to be installable with Your best bet is to go to PyPi and download the files from here then copy them to the ESP32. I'm guessing that what's on PyPi matches what would have been installed with upip. Good luck! You might like to report back if you have success as I'm sure others would like to use the ULP. Another thought is to raise an issue: the maintainers of the library might like to make it mip-installable. It's not a big job. |
Beta Was this translation helpful? Give feedback.
-
ICYMI: MIP support was added in this PR: micropython/micropython-esp32-ulp#94 import mip
mip.install('github:micropython/micropython-esp32-ulp') |
Beta Was this translation helpful? Give feedback.
Thanks for the reply and looking into an alternative way to get this installed. I followed your tip and indeed created an issue:
micropython/micropython-esp32-ulp#93