Soheil Novinfard
/
digitalInInterrupt_modified
Interrupt - modified version
Fork of digitalInInterrupt_sample by
Diff: main.cpp
- Revision:
- 2:071f22412cdc
- Parent:
- 1:13e0c1956b54
- Child:
- 3:05b6a1431a6b
--- 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