A simple example that uses the GPIO group and pin interrupts. LED1 turns on when P21 and P22 are grounded (using group 0 interrupt) LED1 turns of when P23 or P24 are grounded (using group 1 interrupt) LED2 turns on when P19 is grounded (using GPIO interrupt 0) LED2 turns off when P18 is grounded (using GPIO interrupt 1)
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
2:7c8d0f7dd79f | 2012-05-24 | alexan_e | Changed interrupt priority comment, the CortexM0 has four levels 0-3. |
1:566ac56c130e | 2012-05-19 | alexan_e | made changes for the code to work when compiled in the online compiler |
0:03be1abca74e | 2012-05-18 | alexan_e | (none) |