Marie-Laure Snijders / Mbed 2 deprecated Demo_mode

Dependencies:   BioroboticsMotorControl mbed

Files at this revision

API Documentation at this revision

Comitter:
MAHCSnijders
Date:
Thu Nov 01 11:16:51 2018 +0000
Child:
1:1e67c5a527cc
Commit message:
Demo mode start: ; - Added pins; - Added screen display

Changed in this revision

BioroboticsMotorControl.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BioroboticsMotorControl.lib	Thu Nov 01 11:16:51 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/teams/Biorobotics-7/code/BioroboticsMotorControl/#2c65bcbebf8a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 01 11:16:51 2018 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "motor.h"
+#include "Screen.h"
+
+InterruptIn Button1(D2);            // Right button on interface
+InterruptIn Button2(D3);            // Left button on interface
+InterruptIn Panic_button(D8);       // Red button on interface
+Screen screen(D14, D15, D9);        // Screen interface
+Motor main_motor(D6, D7, D13, D12);
+Motor sec_motor(D5, D4, D10, D11);
+
+int main()
+{
+    while (true) 
+    {
+        screen.clear_display();
+        screen.display_state_name("Demo mode");
+        
+        control_goes_up = true;
+        control_goes_right = true;
+        
+        screen.display_up_down_arrow(control_goes_up);
+        screen.display_left_right_arrow(control_goes_right);
+        screen.display();
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Nov 01 11:16:51 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file