03-28-2015, 11:11 AM
The interrupt was not running. This needs to be changed:
attachInterrupt(CLOCK_PIN, clockTransitioned, CLOCK_TRANSITION);
To this:
attachInterrupt(INTERRUPT_NUMBER, clockTransitioned, CLOCK_TRANSITION);
With this define:
#define INTERRUPT_NUMBER 0
The attachinterrupt takes the actual interrupt number as a parameter rather than the pin number the interrupt is acting upon. It's a little confusing because the Arduino Due uses the pin number whereas the rest use the interrupt number.
I meant to point this out earlier but forgot.
But, that doesn't fix the data not displaying problem.
Ed
attachInterrupt(CLOCK_PIN, clockTransitioned, CLOCK_TRANSITION);
To this:
attachInterrupt(INTERRUPT_NUMBER, clockTransitioned, CLOCK_TRANSITION);
With this define:
#define INTERRUPT_NUMBER 0
The attachinterrupt takes the actual interrupt number as a parameter rather than the pin number the interrupt is acting upon. It's a little confusing because the Arduino Due uses the pin number whereas the rest use the interrupt number.
I meant to point this out earlier but forgot.
But, that doesn't fix the data not displaying problem.
Ed