\"
button \" ON \", [SetThePinON]
wprint \" \"
button \" OFF \", [SetThePinOFF]
wprint \" \"
button \"Refresh\", [TestExit]
wprint \"
\"
wprint \"Relay status:\"
wprint \" \"
textbox pinStat
wprint \"
\"
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 \"\"
[refresh]
curr = round(temp(0))
Wait
更多回帖