Skip to content

I2C0 works but I2C1 doesn't #2672

Answered by Andy2No
w9ran asked this question in Q&A
Dec 5, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Yep. It looks like this line would need to be changed, to use Wire1 instead:

Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);

Try changing &Wire to &Wire1.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Andy2No
Comment options

Answer selected by earlephilhower
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
Category
Q&A
Labels
None yet
3 participants