anggelo Cardona
/
Pwm_Cuadrado
PWM
Revision 0:a4a3d2a2701f, committed 2014-12-04
- Comitter:
- anggeloko
- Date:
- Thu Dec 04 04:39:38 2014 +0000
- Commit message:
- codigo simple para un pwm
Changed in this revision
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
pwm.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r a4a3d2a2701f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Dec 04 04:39:38 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file
diff -r 000000000000 -r a4a3d2a2701f pwm.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pwm.cpp Thu Dec 04 04:39:38 2014 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" + +PwmOut Fr(PTC9); + +int main() +{ + Fr.period(200); //(1/frecuencia) + Fr.write(0.5f); //50% siclo util + while(1); + +} \ No newline at end of file