-->
Page 2 of 3

Re: A couple of new Driving Lesson chapters

PostPosted: Tue May 31, 2016 1:58 am
by livetv
Well thanks for all you guys are doing! I'm trying to be patient, waiting to see how web sockets work.

Re: A couple of new Driving Lesson chapters

PostPosted: Tue May 31, 2016 5:35 am
by Mmiscool
The web sockets is on and in use if you use any gui item.

Try the following example.

every 5 seconds the slider and textbox will be updated with the new value of x.

Code: Select allslider x, 1,100
textbox x
timer 5000, [tick]
wait

[tick]
x = x + 1
wait

Re: A couple of new Driving Lesson chapters

PostPosted: Tue May 31, 2016 6:05 am
by Electroguard
Thanks for the imagebutton example, and I did try it even though I already knew it wasn't going to work for me - because I had already reported the imagebutton branching problem 3 weeks ago... http://www.esp8266.com/viewtopic.php?f=42&t=9942

We established that my script - which didn't work for me - did work ok for you if you modified my standard gpio01 pin to the appropropriate D4 of your nodeMCU. I asked what the Dpin prefix was all about, and was told to look in forlottos nodeMCU beginners guide, where I found out that the Dpin prefix is specific to the nodeMCU.
So unless the intended generic tutorial was to become another nodeMCU specific tutorial, that was the end of that.. and evidently still remains so.
It needed somebody else to independently disprove or confirm the symptoms I was reporting on non-nodeMCU hardware, else it's just me whinging about something that doesn't affect anyone else.

Re: A couple of new Driving Lesson chapters

PostPosted: Wed Jun 01, 2016 6:51 am
by matherp
I can confirm the above program works perfectly on a ESP-12F. I just changed "D4" for "13" and it toggles GPIO13 and changes the image as expected. Also tested on GPIO2 (change "D4" for "2")