Re: slider html gui widget light dimmer
Posted: Tue Feb 28, 2017 2:50 pm
I Update The Code for ESP Basic Alpha 3.xx Branch. Working very good !!!
Code: Select all
'For ESP Basic Alpha 3.xx Branch
'The following code will dim an led on pin 2 using a slider control
'This LED is Blue color in NodeMcu board
lightlevel = 0
slider lightlevel, 0, 1023
button "Set level", [set.it]
wait
[set.it]
io(pwo, 2, lightlevel)
wait