Skip to content

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

Merged
merged 7 commits into from
Aug 5, 2020
Merged

Add 2nd HW I2C support #292

merged 7 commits into from
Aug 5, 2020

Conversation

benoitm974
Copy link
Contributor

As I needed to use the second I2C channel on ESP32 I propose a change to SSD1306Wire file.

@marcelstoer
Copy link
Member

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
@benoitm974
Copy link
Contributor Author

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)
Copy link
Contributor

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'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@thijstriemstra
Copy link
Contributor

@benoitm974 can you also add this for SH1106?

@benoitm974
Copy link
Contributor Author

@benoitm974 can you also add this for SH1106?

ok it's done for SH1106

@thijstriemstra
Copy link
Contributor

awesome, thanks, works great.

@marcelstoer
Copy link
Member

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
Copy link
Contributor

@thijstriemstra thijstriemstra Aug 3, 2020

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

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

Successfully merging this pull request may close these issues.

3 participants