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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:f45212966fb1
- Child:
- 1:813f4b17ae65
diff -r 000000000000 -r f45212966fb1 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Feb 18 13:13:34 2019 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "Encoder.h"
+#include "PID.h"
+#include "Wheel.h"
+#include "QEI.h"
+
+//blue D8
+//Green D9
+//Red D5
+
+int main() {
+ DigitalOut enable(PC_12);
+ enable.write(1);
+ Encoder* LE = new Encoder(A5,A4);
+ Encoder* RE = new Encoder(A2,A3);
+ Wheel* leftWheel = new Wheel(LE,PB_7,PB_14);
+ Wheel* rightWheel = new Wheel(RE,PA_15,PB_13);
+
+
+
+}