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:
- 57:b1b4e1379613
- Parent:
- 53:c703e0bf5e87
- Parent:
- 56:389436192e63
- Child:
- 60:f171b7006c73
diff -r 61fba1be990d -r b1b4e1379613 photointerruptRoutines.h
--- a/photointerruptRoutines.h Fri Mar 24 18:31:41 2017 +0000
+++ b/photointerruptRoutines.h Fri Mar 24 18:40:58 2017 +0000
@@ -88,4 +88,13 @@
}
state = updateState();
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
