Skip to content
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

Redefinition of Wire and Wire1 not necessary #4

Open
freespace opened this issue Jan 1, 2024 · 0 comments
Open

Redefinition of Wire and Wire1 not necessary #4

freespace opened this issue Jan 1, 2024 · 0 comments

Comments

@freespace
Copy link

This is needed b/c the arduino-pico core doesn't define WIRE_INTERFACES_COUNT properly, so U8g2 library does not include code to send bytes over Wire1.

If we add the compile-time flag -D WIRE_INTERFACES_COUNT=2 then U8g2 will use the 2nd HW I2C (via U8G2_SSD1306_72X40_ER_F_2ND_HW_I2C) and then we do not need to modify any libraries but just need the compile time flag and

Wire1.setSDA(22);
Wire1.setSCL(23);

And the display will work properly.

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

No branches or pull requests

1 participant