-->
Page 1 of 1

[exit] end button not working ---> [SOLVED]

PostPosted: Sat Jan 16, 2016 12:48 am
by heckler
Hi Mike (or others that might know the problem),

Been working on some test code to learn web page interaction with neopixle strip

this code below works pretty well
except that the "Exit" button does not work

Code: Select allbutton "Exit" [exit]
wprint "<br>"
button "Set All" [setcolor]
button "All Off" [alloff]
button "Set One" [setone]
wprint "<br>"
listbox "0,1,2,3,4,5,6,7" pix
wprint "<br>"
slider rd 0 255
slider gn 0 255
slider bu 0 255
wprint "<br>"
wait
[setcolor]
serialprintln ramfree()
serialprintln flashfree()
serialprintln ip()
serialprint rd
serialprint gn
serialprintln bu
serialprintln " "
neostripcolor(0,7,rd,gn,bu)
wait
'
[alloff]
neocls()
wait
'
[setone]
neo(pix,rd,gn,bu)
wait
'
[exit}
end


any idea why the exit button is not working?
thanks
dwight

PS: I am using a nodemcu board from Banggood

Re: [exit] end button not working

PostPosted: Sat Jan 16, 2016 2:54 am
by viscomjim
It looks like you have the wrong bracket on the exit...

[exit}
end

should be

[exit]
end

Re: [exit] end button not working

PostPosted: Sat Jan 16, 2016 12:07 pm
by heckler
THANK YOU!!! Viscomjim

Can't see the forest for the trees??
I missed that completely!

works now!!!
dwight