Sweep a servo according to Proximity sensor measure

Dependencies:   Servo X_NUCLEO_6180XA1 mbed

Fork of HelloWorld_6180XA1 by ST

Revision:
31:1aaf6b8b066e
Parent:
30:c8efec21544f
Child:
32:724d2afb0ca2
--- a/main.cpp	Mon Nov 09 16:53:24 2015 +0000
+++ b/main.cpp	Tue Nov 10 10:55:34 2015 +0000
@@ -110,7 +110,7 @@
 }
 
 /* Print on board 4 Digit display the app exiting BYE message */
-#define DELAY 2000
+#define DELAY 2000  // 2Sec
 void Bye()
 {
    Timer timer;
@@ -135,7 +135,7 @@
    int status;
  
    //device_i2c.frequency(400000); //change i2c frequncy from 100kHz to 400kHz
-   pc.baud(115200); //change the printf baudrate
+   //pc.baud(115200); //change the printf baudrate if faster printf is needed
    
    status=board->InitBoard();
    if(status)
@@ -181,7 +181,6 @@
       }
    }
    Bye();
-
    delete board;
 }