Are these 7 bit or 8 bit addresses?
Sorry, I assume this is all covered elsewhere but I haven't found it yet.
Explore... Chat... Share...
Moderator: Mmiscool
i2c.setup(4,5)
for address = 1 to 127
i2c.begin(address)
stat = i2c.end()
if stat < 1 then
'print stat
wprint "Found I2C device at address: 0x" & hex(address)
wprint " - > " & address
wprint " <br>"
endif
next address
wait
robert badiduwitz wrote:Probably the easiest thing to do is load an I2C scanner program to see what the address of your OLED is as seen by the ESP8266. Make sure you have pullups on the I2C pins. Also change the pins to what ever your setup is. In this program it is using 4 and 5.Code: Select alli2c.setup(4,5)
for address = 1 to 127
i2c.begin(address)
stat = i2c.end()
if stat < 1 then
'print stat
wprint "Found I2C device at address: 0x" & hex(address)
wprint " - > " & address
wprint " <br>"
endif
next address
wait
EDIT...
Now that I look at the manual, there is no way to define the address of the oled using the oled commands. Definitely one for Mike. Maybe he can add an oled setup type command or something.
let v = 100
i2c.setup(4,5)
lcdbl 1
oledcls
oledprint "Hello", 0, 0
oledprint v, 3, 3
wait
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[…]