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

Softwire and Heltec OLED #17

Closed
gsmith255 opened this issue Nov 4, 2020 · 1 comment
Closed

Softwire and Heltec OLED #17

gsmith255 opened this issue Nov 4, 2020 · 1 comment

Comments

@gsmith255
Copy link

Hi,

I'm tring to use SoftWire to connect to BME280 on a heltec wifi kit32.
If I use soft SDA SCL (GPIO_4,GPIO_15) respectivley it works fine. (note the I2C OLED diplay is connected to 4,15
When I move the BME280 to two other GPIO's (21,21) it work fine until i call the SDD1306 lib display.init() command.
This appaers to set the SoftWire pins back to (4,15)
Does this mean I cant use SDD1306 and SoftWire on differnet pins?

Nice library btw ..
Thanks

@stevemarple
Copy link
Owner

I'm not sure exactly what you are trying to do here. It sounds like you are trying to have SoftWire create two independent I2C buses. If so then you need two separate instances of SoftWire, so something like

SoftWire i2c1(4, 15);
SoftWire i2c2(20,21);

Each bus needs separate pins. I trust (21,21) is just an error in your description.

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

2 participants