Seek&Destroyers / Mbed 2 deprecated test_avance

Dependencies:   mbed

Revision:
4:a61068858bcf
Parent:
3:013492d1db6d
--- a/main.cpp	Tue Mar 31 13:13:17 2015 +0000
+++ b/main.cpp	Tue Mar 31 14:09:58 2015 +0000
@@ -2,7 +2,7 @@
 
 Serial pc(USBTX, USBRX);
 InterruptIn entree1(D9);
-DigitalOut sortie1(A0);
+PwmOut sortie1(A0);
 DigitalOut sortie2(A1);
 
 int cran=0;
@@ -20,15 +20,15 @@
         
     while(cran<=nb_cran_max)
     {
-     sortie1 = 1;  
-     sortie2 = 0; 
+     sortie1 = 0.1;  
+     sortie2 = !sortie1; 
     }
     
     sortie1 = 0;  
     sortie2 = 0;   
 }
 
-void main()
+int main(void)
 {
     entree1.rise(&frontMontant1);
     pc.printf("Start \n\r");