Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By Mmiscool
#43634 Example taken from
http://www.instructables.com/id/ESP8266 ... IoT-Light/

A very nice build guide step by step by 陳亮


Code: Select allcls
let OutputPin = D4
button "Toggle" [Toggle]
wait

[Toggle]
if PinStatus == 1 then goto [On] else goto [Off]

[On]
PinStatus = 0
po OutputPin 1
wait

[Off]
PinStatus = 1
po OutputPin 0
wait