Example to move the robot.

Dependencies:   m3pi mbed

Fork of 3pi_Line_Follow by Craig Evans

Revision:
0:008c53db1931
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main/main.h	Tue Mar 20 16:28:07 2018 +0000
@@ -0,0 +1,36 @@
+#ifndef MAIN_H
+#define MAIN_H
+
+#include "m3pi.h"
+#include "mbed.h"
+
+// API objects
+extern m3pi robot;
+
+// LEDs on the Mbed board
+extern BusOut leds;
+
+// Buttons on the 3pi shield
+extern DigitalIn button_A;
+extern DigitalIn button_B;
+extern DigitalIn button_X;
+extern DigitalIn button_Y;
+extern DigitalIn button_enter;
+extern DigitalIn button_back;
+
+// Blue potentiometers on the 3pi shield
+extern AnalogIn pot_P;
+extern AnalogIn pot_I;
+extern AnalogIn pot_D;
+extern AnalogIn pot_S;
+
+// Globals
+
+// Prototypes
+void init();
+void welcome();
+void calibrate();
+void wait_for_enter();
+void repeat();
+
+#endif
\ No newline at end of file