[Swlug] smbus on Pi Pico
Rhys Sage
rhys_sage at yahoo.com
Sun Apr 24 17:57:11 UTC 2022
I'm not quite sure how to import smbus in Python. Via Thonny I imported the circuitpython version to the Pi Pico. It's sitting in a subdirectory called "lib" in the program folder.
I've been playing with various different ideas and drawing a blank so far. This is the best I have come up with.
#import sys
#sys.path.append("lib/")
import lib/smbus.cpython-39-x86_64-linux-gnu.so
I'm trying to get the BMP280 pressure/humidity module to work.
Rhys Sage
More information about the Swlug
mailing list