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

Changing the default pins. #12

Closed
PedroD opened this issue Feb 15, 2017 · 4 comments
Closed

Changing the default pins. #12

PedroD opened this issue Feb 15, 2017 · 4 comments

Comments

@PedroD
Copy link

PedroD commented Feb 15, 2017

Hi!

Is it possible to change the default A5 and A4 pins (both in Arduino and ESP8266)?

Thanks!

Great lib!!

@claws
Copy link
Owner

claws commented Feb 18, 2017

It looks like the pins for SDA and SCL are defined in the Arduino header wire.h. It does not look like it can be changed there.

I'm not yet sure about the esp8266.

@vasco65
Copy link

vasco65 commented Apr 5, 2017

In the esp8266 it works ok with other pins, just have to setup i2c before using it with Wire.begin(sda_pin,scl_pin);
I'm using in this moment Wire.begin(0,2) on a NodeMCU (ESP-12) and connecting sda to pin D3 and scl to pin D4.

@Sdsyc
Copy link

Sdsyc commented Apr 9, 2017

For "WEMOS D1 mini Pro" wifi board based on ESP-8266EX. It works perfectly with:

// Initialize WEMOS D1 mini Pro
// D1 IO, SCL GPIO5
// D2 IO, SDA GPIO4
Wire.begin(4,5); //sda_pin 4 ,scl_pin 5

@claws
Copy link
Owner

claws commented Apr 15, 2017

Question answered, closing.

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

4 participants