Time to buy a bus pirate.
Time to buy a bus pirate.
Explore... Chat... Share...
Moderator: Mmiscool
memclear
address = 112
i2c.begin(address)
i2c.write(33)
i2c.write(129)
i2c.write(239)
i2c.end()
timesetup(-5,0)
delay 500
timer 5000 [refresh]
wait
[refresh]
cls
button "Exit " [Exit]
print time()
disp = time()
i2c.begin(address)
hrones = mid(disp,13,1) 'hour ones
d = hrones
gosub [conv]
i2c.write(2)
i2cwrite(x)
hrtens = mid(disp,12,1) ‘hour tens
d = hrtens
gosub[conv]
i2c.write(0)
i2c.write(x)
mnones = mid(disp,16,1) ’minutes ones
d = mnones
gosub[conv]
i2c.write(8)
i2c.write(x)
mntens = mid(disp,15,1) ‘minutes tens
d = mntens
gosub[conv]
i2c.write(6)
i2c.write(x)
i2c.end()
’serialprint “hours tens = ”
‘serialprintln hrtens
’serialprint “hours ones = ”
‘serialprintln hrones
’serialprint “minutes tens = ”
‘serialprintln mntens
’serialprint “minutes ones = ”
‘serialprintln mnones
wait
'
[Exit]
timer 0
wprint "<a href='/'>Menu</a>"
end
[conv]
if d = 0 then x = 63
if d = 1 then x = 6
if d = 2 then x = 91
if d = 3 then x = 79
if d = 4 then x = 102
if d = 5 then x = 109
if d = 6 then x = 125
if d = 7 then x = 7
if d = 8 then x = 127
if d = 9 then x = 111
return
if (FunctionName == "i2c.begin")
{
i2cPinNo = Param0.toInt();
MyOut = "";
Wire.beginTransmission(i2cPinNo);
}
if (FunctionName == "i2c.write") MyOut = String(Wire.write(Param0.toInt()));
if (FunctionName == "i2c.end") MyOut = String(Wire.endTransmission());
if (FunctionName == "i2c.requestfrom")
{
i2cPinNo = Param0.toInt();
byte i2cParamB = Param1.toInt();
MyOut = String(Wire.requestFrom(i2cPinNo, i2cParamB));
}
if (FunctionName == "i2c.available") MyOut = String(Wire.available());
if (FunctionName == "i2c.read") MyOut = String(Wire.read());
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[…]