lightradar

Dependencies:   TextLCD mbed

Fork of Laster_Radar_test by Christopher H

Revision:
1:ee1640b8be78
Parent:
0:36109edfc712
Child:
2:4d8ef1799adc
--- a/main.cpp	Mon Jun 22 08:52:27 2015 +0000
+++ b/main.cpp	Fri Nov 20 14:24:11 2015 +0000
@@ -67,18 +67,18 @@
 int main() {
     byte arr[2];
     display.cls();
-    vInitSystemClock();
+   // vInitSystemClock();
     display.printf("Hallo\n");
-    PRESSURE_vInit();
+   // PRESSURE_vInit();
         while(1) {
         myled = 1; // LED is ON
         wait(0.1); // 200 ms
-        I2C_write(0xC4, 0x00, 0x04);
+      //  I2C_write(0xC4, 0x00, 0x04);
         myled = 0; // LED is OFF
         wait(0.3); // 1 sec
-       I2C_read(0xC4,0xC5, 0x8f, 2, arr);
+      // I2C_read(0xC4,0xC5, 0x8f, 2, arr);
        display.cls();
-        display.printf("Distanz:%d cm\n", ((arr[0]<<8) | arr[1]) );
-        
+        //display.printf("Distanz:%d cm\n", ((arr[0]<<8) | arr[1]) );
+             display.printf("Distanz: cm\n" );
     }
 }