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: BioroboticsMotorControl mbed
Revision 0:91a5bdab07d3, committed 2018-11-01
- 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
--- /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