
Lab 2 sample 2: use of interrupts
Dependents: digitalInInterrupt_sample
Fork of digitalInPolling_sample by
Revision 2:071f22412cdc, committed 2017-01-24
- Comitter:
- WilliamMarshQMUL
- Date:
- Tue Jan 24 18:31:35 2017 +0000
- Parent:
- 1:13e0c1956b54
- Child:
- 3:05b6a1431a6b
- Commit message:
- Change to falling edge
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jan 23 17:26:17 2017 +0000 +++ b/main.cpp Tue Jan 24 18:31:35 2017 +0000 @@ -33,7 +33,7 @@ int main() { button.mode(PullUp); // Ensure button i/p has pull up - button.rise(&buttonCallback) ; // Attach function to rise event + button.fall(&buttonCallback) ; // Attach function to falling edge flashT.start(&flash) ; // Start the flashing thread running } \ No newline at end of file