DEUXIEME PROG

Dependencies:   Servo mbed

main.cpp

Committer:
meddahihadj
Date:
2015-02-11
Revision:
0:a1c8577f66c5
Child:
1:32ebac4d3716

File content as of revision 0:a1c8577f66c5:

#include "mbed.h"
#include "Servo.h"

DigitalOut myled(LED1);

int main (){
   Serial pc(USBTX,USBRX);
//: int main(){
      
          while(1){
             Serial pc(USBTX, USBRX); // tx, rx
         //Serial pc(USBTX, USBRX);
//int main() {
             pc.printf("Hello World!\n");
             while(1) {
                pc.putc(pc.getc() + 1);
    }
                myled=1;
                wait(0.5);
                myled=0;
                wait(1);
        //Servo::write(0.2)
              }   
          }