Current News

Moderator: Mmiscool

User avatar
By forlotto
#51923 I think this would be handy to have SDA and SCL as whatever pins however you will have to change the scan routine etc... There would have to be a setup specifying the pins and so forth.

Which pins do your propose you would like to use I2C on ? There may be compatibility issues with doing things in this manner as well I am not sure never checked into the specifics of everything.
User avatar
By trackerj
#51926 The most widely used ones are SDA=4 and SCL=5 and can be find defined as default even in nodemcu/pins_arduino.h. And this is a widely used ESP Board!

Code: Select allWire.begin(4, 5)
will do the trick but as I said,I would like to have them as user defined not hardcoded.