LED = 25
Button " AN ", [anschalten]
cssid htmlid(), "background-color: green;"
textbox stat
'cssclass "input","cursor: not-allowed; pointer-events: none;width:100%; height:33%; font-size:10vw;text-align: center;"
cssclass "input","width:100%; height:33%; font-size:10vw;text-align:center;"
Button " AUS ",[ausschalten]
cssid htmlid(), "background-color: red;"
cssclass "button", "width:100%; height:33%; font-size:10vw;color: white"
timer 1000,[status]
wait
[anschalten]
IO(po,LED,1)
goto [status]
[ausschalten]
IO(po,LED,0)
[status]
if io(laststat,LED)=1 then
stat = "Status: An"
else
stat = "Status: Aus"
end if
wait