dit is em

Dependencies:   mbed

Revision:
14:878d20f36e99
Parent:
13:02e56051501a
Child:
15:a2a8d0a25574
Child:
16:a9382753e8d6
--- a/main.cpp	Mon May 15 11:07:06 2017 +0000
+++ b/main.cpp	Tue May 16 11:21:47 2017 +0000
@@ -26,6 +26,7 @@
 int position = 0;
 int pos;
 
+  
 // poar neemn
 // twee poar neemn
 // twee tettn in n envelop
@@ -72,12 +73,38 @@
     } else {
         d = 0<<3;
     }
-
-output = a || b || c || d;
+return a ;
+return b;
+return c;
+return d;
+    output = a || b || c || d;
 }
 
-
-
+int vooruit() {
+     MotorL1 = 1;
+     MotorL2 = 0;
+     MotorR1 = 1;
+     MotorR2 = 0;
+     
+}
+int achteruit () {
+    MotorL1 = 0;
+     MotorL2 = 1;
+     MotorR1 = 0;
+     MotorR2 = 1;
+    }
+int Hardebochtlinksom (){
+    MotorL1 = 1;
+     MotorL2 = 0;
+     MotorR1 = 0;
+     MotorR2 = 1;
+    }
+int Hardebochtrechtsom() {
+    MotorL1 = 0;
+     MotorL2 = 1;
+     MotorR1 = 1;
+     MotorR2 = 0;
+    }
 
 int stepper(int stapmode)
 {