University of Plymouth - Stages 1, 2 and 3
/
Task327-F429
Fork of Task327 by
Diff: main.cpp
- Revision:
- 6:fbc5b7916329
- Parent:
- 4:c85556b07606
--- a/main.cpp Wed Feb 07 13:54:40 2018 +0000 +++ b/main.cpp Thu Sep 12 15:02:14 2019 +0000 @@ -56,12 +56,10 @@ while (true) { //Put CPU back to sleep - sleep(); //woken by rising edge - puts("Rising"); + sleep(); //woken by rising edge updateState(); sleep(); //Falling edge - puts("Falling"); updateState(); //You can ONLY reach this point if an ISR wakes the CPU twice