laboratorio prueba 1

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 PwmOut servo1(PB_4);
00004 
00005 DigitalOut myled(LED1);
00006 
00007 int main() {
00008     
00009     mypwm.period_ms(20);
00010     mypwm.pulsewidth_ms(1);
00011   
00012     
00013     while(1) {
00014         myled = !myled;
00015         wait(1);
00016     }
00017 }