import ADS1x15 results in errors #11539
Unanswered
Mr-bkmtech
asked this question in
RP2040 / Pico
Replies: 3 comments 16 replies
-
It sounds like you're using a driver from PyPI that isn't designed for MicroPython (i.e. it's designed for a Raspberry Pi or some other Linux-based embedded system). (As far as I understand it, Thonny will show all PyPI packages, not just MicroPython-suitable ones). |
Beta Was this translation helpful? Give feedback.
1 reply
-
Try this one: https://github.com/robert-hh/ads1x15 |
Beta Was this translation helpful? Give feedback.
15 replies
-
I will review all replies with my associate, thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to communicate with an ADS1015 module using I2C and I get the following errors using Thonny as my editor
This is line 98:
import ADS1x15
I get the following messages:
Traceback (most recent call last):
File "", line 98, in
File "/lib/ADS1x15/init.py", line 5, in
File "/lib/ADS1x15/ADS1x15.py", line 1, in
File "/lib/smbus2/init.py", line 23, in
File "/lib/smbus2/smbus2.py", line 25, in
File "/lib/fcntl.py", line 1, in
ImportError: no module named 'ffi'
I have gone through the Thonny packages available and cannot find a package that works, or even an easily identifiable package that should work.
I am not sure how to proceed at this point!
Beta Was this translation helpful? Give feedback.
All reactions