DEUXIEME PROG

Dependencies:   Servo mbed

Revision:
0:a1c8577f66c5
Child:
1:32ebac4d3716
diff -r 000000000000 -r a1c8577f66c5 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Feb 11 10:52:06 2015 +0000
@@ -0,0 +1,25 @@
+#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)
+              }   
+          }
+  
\ No newline at end of file