Personally, I'm using GPIO0/GPIO2 since they also need PullUps for boot mode, so perfect for I2C bus too.
Wire.begin(0, 2);
But if you don't provide pins, they will be defaulted according to the board variant, Generic is 4/5.
Explore... Chat... Share...
Wire.begin(0, 2);
martinayotte wrote:You can hook up I2C bus on almost any pins, you just need to provide pins number in the begin() function.
Personally, I'm using GPIO0/GPIO2 since they also need PullUps for boot mode, so perfect for I2C bus too.Code: Select allWire.begin(0, 2);
But if you don't provide pins, they will be defaulted according to the board variant, Generic is 4/5.
bluegiraffe wrote:I've used the 1602 LCD with an I2C adapter on NodeMcu Lua and Sming, and it works fine in both.
I also use the 1.8 TFT ST7735 based TFT displays with Sming using SPI and it also works fine.
shah wrote:Thank you for your reply. But I don't see begin() taking GPIO pins in the function prototype. It only takes optional address of the device.
https://www.arduino.cc/en/Reference/WireBegin
Am I missing something?
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]