DEUXIEME PROG

Dependencies:   Servo mbed

Revision:
1:32ebac4d3716
Parent:
0:a1c8577f66c5
--- a/main.cpp	Wed Feb 11 10:52:06 2015 +0000
+++ b/main.cpp	Thu Feb 19 13:29:00 2015 +0000
@@ -1,25 +1,25 @@
 #include "mbed.h"
 #include "Servo.h"
 
-DigitalOut myled(LED1);
+DigitalOut allumLED(LED1);
 
-int main (){
-   Serial pc(USBTX,USBRX);
+int main ()
+{
+    Serial pc(USBTX,USBRX);
 //: int main(){
-      
-          while(1){
-             Serial pc(USBTX, USBRX); // tx, rx
-         //Serial pc(USBTX, USBRX);
+
+    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);
+        pc.printf("hadj  test\n");
+        while(1) {
+            pc.putc(pc.getc() + 1);
+        }
+        allumLED=1;
+        wait(0.5);
+        allumLED=0;
+        wait(1);
+        //Servo::write(0.2)
     }
-                myled=1;
-                wait(0.5);
-                myled=0;
-                wait(1);
-        //Servo::write(0.2)
-              }   
-          }
-  
\ No newline at end of file
+}