-
Notifications
You must be signed in to change notification settings - Fork 648
Add 2nd HW I2C support #292
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
Please add a note about this feature to the README e.g. at https://github.com/ThingPulse/esp8266-oled-ssd1306#i2c-with-wireh. |
Add 2nd HW I2C support
Upated README.md |
README.md
Outdated
@@ -76,6 +76,8 @@ The library supports different protocols to access the OLED display. Currently t | |||
SSD1306Wire display(0x3c, SDA, SCL); // ADDRESS, SDA, SCL | |||
// for 128x32 displays: | |||
// SSD1306Wire display(0x3c, SDA, SCL, GEOMETRY_128_32); // ADDRESS, SDA, SCL, GEOMETRY_128_32 (or 128_64) | |||
// for using 2nd Hardware I2C (if availbale) |
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.
typo here, should say 'available'
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.
Done.
Add 2nd HW I2C support
@benoitm974 can you also add this for SH1106? |
ok it's done for SH1106 |
awesome, thanks, works great. |
Benoit, thanks for writing such clear in-code documentation. |
README.md
Outdated
@@ -84,6 +89,9 @@ for a SH1106: | |||
#include "SH1106Wire.h" | |||
|
|||
SH1106Wire display(0x3c, SDA, SCL); // ADDRESS, SDA, SCL | |||
// By default SD1306Wire set I2C frequency to 700000, you can use set either another frequency or skip setting the frequency by providing -1 value |
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.
this should be SH1106Wire. I would use 'By default the I2C frequency of SH1106Wire is 700000, you can use another frequency or skip setting the frequency by providing -1 value' etc
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.
Done.
As I needed to use the second I2C channel on ESP32 I propose a change to SSD1306Wire file.