-
Notifications
You must be signed in to change notification settings - Fork 789
Update CP I2C Scan Example #1925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. One thing below.
# If you run this and it seems to hang, try manually unlocking | ||
# your I2C bus from the REPL with | ||
# >>> import board | ||
# >>> board.I2C().unlock() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this, as it is explained in the guide page associated with this example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool. thanks. i wanted to do that anyway. wasn't sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last thing, sorry!
# If you run this and it seems to hang, try manually unlocking | ||
# your I2C bus from the REPL with | ||
# >>> import board | ||
# >>> board.I2C().unlock() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for not being clear. Please leave it in this copy of the code, it is not explained in the Essentials guide, only in the template page.
@caternuson Thanks for adding this! |
An attempt to update code example to show creating I2C bus manually. QT Py 2040 and Pi Pico are two good examples where existing code does not work and lot's of users end up running into this.