motor i senzor

Dependencies:   TextLCD mbed PinDetect

Revision:
10:0b8a98b1e6b1
Parent:
6:902bec57d9ae
--- a/MotorDrivers/Motor.cpp	Mon Nov 11 14:04:12 2013 +0000
+++ b/MotorDrivers/Motor.cpp	Mon Nov 11 19:01:15 2013 +0000
@@ -7,7 +7,9 @@
     pwmOut = motorPwmInitDutyCycle;
     
     positiveOut = 0;
-    negativeOut = 0;   
+    negativeOut = 0;  
+    direction = 0; 
+    pwmOut = 1;
 }
 
 void Motor::start() {