Attempting to understand how to integrate 'utypes' module into my project? #19202
Replies: 6 comments 4 replies
-
|
See the official doc for instructions on how to install with |
Beta Was this translation helpful? Give feedback.
-
|
So I get this to work... for example... But something like... Fails... thinking I could try to load something 'generic' as a validation step? Moreover, I don't seem to see anywhere in the github repo for micropython, even in extmod? Any utypes or even ctypes library? The source I am trying to use just references 'utypes' so was thinking it was just an extmod not included in core micropython images? And I tried to use an A.I. and was completely useless results returned, guess I don't know how correctly prompt the A.I. as well. |
Beta Was this translation helpful? Give feedback.
-
|
Oh, and I fixed the referenced link above... it was broken in the original query. |
Beta Was this translation helpful? Give feedback.
-
|
If you need uctypes, it's probably built-in. What board are you using? MicroPython's built-in And there it is on my board: below uasyncio and above vfs. |
Beta Was this translation helpful? Give feedback.
-
|
I am testing the code (per the original link) with uctypes... I was trying to find the 'utypes' the original library author used, but the IDE he recommended is dead, no longer supported, and he makes no reference to how he found or used the libraries his code relies on. However, the more I look at the code, the more I think he is just using very common ctypes structures so uctypes may work with the original code. Kinda a bummer... some of the most recent code for BMX280 sensors for use with ESP32 on github is orphaned by an odd library. |
Beta Was this translation helpful? Give feedback.
-
|
Cool site! Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reviewing the following (external) library module for MP, and I am not sure how to include the 'utypes' module into my project?
https://gist.github.com/Avaray/f7f6d9559b80f242799b28e5982327ab
I am using Thonny IDE at the moment, since it is typically easy to use, but seem to recall that you can use 'mpremote' as well? I would need to setup a python virtual environment to install and use mpremote (i.e. avoid system wide install using pip), have no issue doing this, if someone would outline the steps of using mpremote? Or point me to online example of using same?
Beta Was this translation helpful? Give feedback.
All reactions