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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 4:b69c993bb0e7
- Parent:
- 3:aecdaed3e772
--- 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);