cls
let pinNo = 0
Timer 300, [refresh]
wprint "Led Lamp Kitchen & Temperature"
wprint "<hr width=350 align=left>"
wprint "<p>"
button " ON ", [SetThePinON]
wprint " "
button " OFF ", [SetThePinOFF]
wprint " "
button "Refresh", [TestExit]
wprint "<p>"
wprint "Relay status:"
wprint "<width=30> "
textbox pinStat
wprint "<br>"
wprint "Temperature:"
textbox curr
wait
[SetThePinON]
let pinStat = "On"
io(po,pinNo,1)
wait
[SetThePinOFF]
let pinStat = "Off"
io(po,pinNo,0)
wait
[TestExit]
wprint "<a href=''></a>"
[refresh]
curr = round(temp(0))
Wait
Moderator: Mmiscool
Var name length was restricted to 10 characters the last I heard, so if you take the first 10 characters of your button [SetThePinON] and [SetThePinOFF] branches they both result in SetThePinO