Thijs KVM / Mbed 2 deprecated DriveXchange

Dependencies:   mbed

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) {