ITI "DallaChiesa" 2019 / Mbed 2 deprecated STMNucleoF401RE_ExampleCode_09_DCmotor_S

Dependencies:   mbed

Revision:
4:b69c993bb0e7
Parent:
3:aecdaed3e772
diff -r aecdaed3e772 -r b69c993bb0e7 main.cpp
--- a/main.cpp	Mon Feb 29 14:52:53 2016 +0000
+++ b/main.cpp	Mon Nov 21 08:18:36 2016 +0000
@@ -15,7 +15,7 @@
 // Instanzia un oggetto di tipo PwmOut  e gli da il nome mypwm
 PwmOut mypwm(PWMB);
 // Definisce il pin che indica la direzione
-DigitalOut motordir(DIRB);
+PwmOut mypwm2(DIRB);
 
 // Instanzia un oggetto di tipo DigitalOut sul pin LED1 e gli da il nome myled
 DigitalOut myled(LED1);
@@ -25,7 +25,7 @@
 
 // Entry point
 int main() {
-    motordir = 1;
+    //motordir = 1;
     
     //Set pwm signal period: The period needed to control the motor in the servo datasheet
     mypwm.period_ms(10);