![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A simple project for sending button input up to AT&T Flow
Dependencies: FXOS8700CQ MODSERIAL mbed
For instructions on using this program, see the AT&T Starter Kit tutorial on it.
Diff: main.cpp
- Revision:
- 71:bcbc072b85e1
- Parent:
- 70:e25fe7e5488a
diff -r e25fe7e5488a -r bcbc072b85e1 main.cpp --- a/main.cpp Tue Aug 09 23:55:37 2016 +0000 +++ b/main.cpp Fri Aug 12 17:18:09 2016 +0000 @@ -22,6 +22,9 @@ volatile int g_sw2_flag = 0; // SW2 event-triggered interrupt +// ISR = interrupt service routine +// down = button was pushed down/falling +// up = button was released/rising void sw2_isr_down() { g_sw2_flag = 1; // set flag in ISR