I2C problem with scanning and filestore #12284
-
PICO firmware: MicroPython v1.20.0 on 2023-04-26; The code is
If I put it into a file on my computer and then run it in Thonny - there is no scan result and no 'Done' In both cases, I see traffic on the bus, and eyeballing it the traces look the same I'm baffled. Any help appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
That looks something caused by "Thonny-Magic". In it's attempt to be "user-friendly", Thonny does a lot of things under the hood, affecting the expected behavior. It should work better when you use e.g. mpremote. Anyway, you should code |
Beta Was this translation helpful? Give feedback.
-
If you do the |
Beta Was this translation helpful? Give feedback.
-
Thanks people I appreciate the help - the main problem was in my brain. Jim |
Beta Was this translation helpful? Give feedback.
That looks something caused by "Thonny-Magic". In it's attempt to be "user-friendly", Thonny does a lot of things under the hood, affecting the expected behavior. It should work better when you use e.g. mpremote.
Anyway, you should code
print(i2c.scan())
to see the scan result when the code is executed from a file.