Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: photointerruptRoutines.h
- Revision:
- 60:f171b7006c73
- Parent:
- 59:fcaef23bbaaf
- Parent:
- 57:b1b4e1379613
- Child:
- 63:7921a3b553e9
--- a/photointerruptRoutines.h Fri Mar 24 18:54:18 2017 +0000
+++ b/photointerruptRoutines.h Fri Mar 24 18:55:23 2017 +0000
@@ -98,4 +98,13 @@
state = updateState();
mutex.unlock();
motorOut((state-orState+lead+6)%6, velocityDuty);
+}
+
+void startInterrupts() {
+ I1.rise(&i_edge);
+ I1.fall(&i_edge);
+ I2.rise(&i_edge);
+ I2.fall(&i_edge);
+ I3.rise(&i3rise);
+ I3.fall(&i_edge);
}
\ No newline at end of file
