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: include/EngineDriver.h
- Revision:
- 5:1afe17a20a5b
- Parent:
- 4:cc391b3f3e57
- Child:
- 6:9eb153e1d472
--- a/include/EngineDriver.h Tue Aug 04 09:05:16 2015 +0000
+++ b/include/EngineDriver.h Thu Aug 13 15:52:19 2015 +0000
@@ -7,7 +7,7 @@
DigitalOut in1(D3);
DigitalOut in2(D5);
DigitalOut in3(D6);
-DigitalOut in4(D10);
+DigitalOut in4(D7);
int inState[4] = {0,0,0,0};
void applyStates()
{
@@ -24,7 +24,15 @@
}
applyStates();
}
-
+void forward()
+{
+ resetEngines();
+ inState[0] = 0;
+ inState[1] = 1;
+ inState[2] = 0;
+ inState[3] = 1;
+ applyStates();
+}
void testEngines()
{
int i = 0;