Hi Butch,
The test code I posted above uses the 'external interrupt' on GPIO.2 (falling edge trigger with internal pullup resistor).
That's why I had re-assigned the pin variables as follows...
; Set Variables and aliases as needed.
; SENSOR (button) input on GPIO.2 - PULL PIN LOW to trigger
;
POW VAR GPIO.3
SHT VAR GPIO.4
It looks like you have changed it back to button trigger on GPIO.4 - which won't work with the code above.
To use the 'external interrupt' - you'll have to have your button on GPIO.2
Arch
Bookmarks