Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by james-drummond
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants