ok - misses some transitions - why ? polling based interrupt based
Fork of Bootcamp-InterruptJoystick by
Diff: main.cpp
- Revision:
- 2:d18857b99d3c
- Parent:
- 1:102ef7d39407
- Child:
- 3:27ec45bc9078
--- a/main.cpp Tue Apr 23 05:49:39 2013 +0000 +++ b/main.cpp Mon Oct 07 20:14:38 2013 +0000 @@ -1,6 +1,11 @@ #include "mbed.h" +// +// ignore interrupt version till we discuss that topic +// + +#ifdef INTERRUPT InterruptIn fire(p14); DigitalOut led(LED1); DigitalOut flash(LED4); @@ -20,7 +25,8 @@ } } -#ifdef OLD +#endif + #include "mbed.h" BusIn joy(p15,p12,p13,p16); @@ -39,4 +45,4 @@ wait(0.1); } } -#endif +