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: Test.cpp
- Revision:
- 1:fe268cc6317a
- Parent:
- 0:41beaa66228b
- Child:
- 2:adc2c3c165aa
--- a/Test.cpp Tue Feb 04 10:05:02 2020 +0000
+++ b/Test.cpp Tue Feb 04 10:20:52 2020 +0000
@@ -12,6 +12,23 @@
DigitalOut Motor1Achter (D11);
DigitalOut Motor2Voor (D10);
DigitalOut Motor2Achter (D9);
+void vooruit()
+{
+ Motor1Voor=1;
+ Motor1Achter=0;
+ Motor2Voor=1;
+ Motor2Achter=0;
+ Motor1=0.5;
+ Motor2=1;
+}
+void achteruit()
+{
+ Motor1Voor=0;
+ Motor1Achter=1;
+ Motor2Voor=0;
+ Motor2Achter=1;
+}
+
void Kijk()
{
if (Sensor1 = 0.5) {