- Thu Apr 21, 2016 4:21 am
#45910
Did that work for you? Does the branch cause the msg to be printed if you press the gpio00 flashing button?
Let me take a step back so we're both starting from the same place...
I tried creating a PIR sensor, using gpio16 for convenience. After several frustrated hours, and several reformats and reflashes, I stripped everything down to just the minimal interupt branch on gpio button change, but still no go, which was when I asked the question... but before asking, I changed gpio16 input pin to gpio00 because I knew you would already have that available to use as a test button.
Following your reply I copied and pasted it as-is, and rightly enough it didn't crash and burn, but neither did it print the branch msg, even though the leds showed the gpio00 button was being pressed and should be causing branching.
Thinking there might be something strange with using interrupt for gpio00 button after it has already been ear-marked by the parser for preventing autorun, I changed the input pin back to 16 again... which causes crash and burn again when run.
Thoroughly sick of the sight of it, I stuck it to one side overnight, then reformatted and reflashed today and tried again, but still the same problems.
So after all is said and done... is it possible to use a digital input to trigger an esp-generated response at the moment?