[Swlug] smbus on Pi Pico

Rhys Sage rhys_sage at yahoo.com
Sun Apr 24 19:22:08 UTC 2022


That was annoying... The message went and sent itself from Yahoo before I'd finished typing...

As I was saying... The error was

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
MicroPython v1.18 on 2022-01-17; Raspberry Pi Pico with RP2040
Type "help()" for more information.
>>> %Run -c $EDITOR_CONTENT
Traceback (most recent call last):
  File "<stdin>", line 11, in <module>
NameError: name 'smbus' isn't defined

I installed smbus using Thonny and it doesn't seem to have worked.

I tried calling it from within the program as it seems to be in a lib folder in the program folder. That didn't work either.

Rhys Sage


More information about the Swlug mailing list