- Wed May 11, 2016 5:56 pm
#47319
This is very weird. I have always been using the blue onboard gpio01 led which I define and address as pin1... as per the available pins on the right-hand side of the VARS page.
But because you asked me if I'm sure I'm using the right pin, I used your modified code which is changed for D4, and for me it bombs straight out with an error because it will not accept D4 as a usable pin for me. I don't even know what the D prefix is supposed to signify, but it doesn't work for me.
So I changed your modified code for my pin 1, and the program doesn't then bomb with an error, and the blue led can be turned on and off, but not by clicking on the imagebutton picture, cos that does not do anything other than repaint the same picture, nor does your added status print change from 1. The imagebutton simply does not branch for me.
The same script runs completely differently for us - and I have tried it on another module with exactly the same results. I was wondering if it might have been something to do with how our different browsers manage javascript or something, but that doesn't explain why you needed to change the led pin1 to D4 in the first place, nor why D4 causes the same program to exit with an error for me but not you.
Why did you need to change pin1 to D4?
Is there something relevant about D4 and the ESPs onboard blue gpio01 led that I'm not aware of?
Why do any gpio pins need to be prefixed with D ?
The only conclusive test I can think of is if CiccioCB could try it if he gets a chance (he has the same Ser Dev Kit Module as me), and see whether it works for him?