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:
- 56:389436192e63
- Parent:
- 50:c0c299bf54a6
- Child:
- 57:b1b4e1379613
--- a/photointerruptRoutines.h Fri Mar 24 17:46:13 2017 +0000
+++ b/photointerruptRoutines.h Fri Mar 24 18:36:20 2017 +0000
@@ -82,4 +82,13 @@
if (I2.read() == 1) //Only count revolutions if the
count_i3++; // rotor spins forward
+}
+
+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
