Skip to content

changed I2C default channel to explicit channel 1#1

Open
jlinkohr wants to merge 1 commit intonotUnique:masterfrom
jlinkohr:patch-1
Open

changed I2C default channel to explicit channel 1#1
jlinkohr wants to merge 1 commit intonotUnique:masterfrom
jlinkohr:patch-1

Conversation

@jlinkohr
Copy link
Copy Markdown

according to https://forum.micropython.org/viewtopic.php?t=9940, there is a warning "Warning: I2C(-1, ...) is deprecated, use SoftI2C(...) instead". The change is only to use the dedicated first Bus.

according to https://forum.micropython.org/viewtopic.php?t=9940, there is a warning "Warning: I2C(-1, ...) is deprecated, use SoftI2C(...) instead". The change is only to use the dedicated first Bus.
@peterhinch
Copy link
Copy Markdown

A better solution is to change the API to pass an initialised I2C instance instead of pin numbers. This leaves the user free to use hard or soft I2C and also facilitates sharing the I2C bus with other devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants