Pablo Lopez
/
pruebapwm1
laboratorio prueba 1
Revision 0:949ec68a75fb, committed 2018-02-20
- Comitter:
- pablolopez89
- Date:
- Tue Feb 20 00:00:46 2018 +0000
- Commit message:
- pwm movimiento servomotor 180
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 949ec68a75fb main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Feb 20 00:00:46 2018 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + +PwmOut servo1(PB_4); + +DigitalOut myled(LED1); + +int main() { + + mypwm.period_ms(20); + mypwm.pulsewidth_ms(1); + + + while(1) { + myled = !myled; + wait(1); + } +}
diff -r 000000000000 -r 949ec68a75fb mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Feb 20 00:00:46 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/7130f322cb7e \ No newline at end of file