I just switched from FW 0.5.2 to 0.5.3 on the Core and noticed that my interrupts are not firing anymore.
Code is more or less straight out of the docs:
setup:
pinMode(D3, INPUT_PULLDOWN);
attachInterrupt(D3, IntHandle3, CHANGE);
code:
void IntHandle3()
{ do stuff }
Works fine with 0.5.2 and earlier. With 0.5.3 and 0.6.0-rc2, the interrupt does not fire. The sub never gets called.
If I add an
interrupts();
to the setup routine, it works again.
Did I miss this ‘feature’ in the release notes?
If so, please update the docs that interrupts have to be explicitly enabled.
I build a very simple setup to reproduce the issue.
Device is a Spark Core.
I when I apply a voltage such as VIN to D3, the blue led should light. If I remove the voltage, it goes off.
Here’s the complete code: