S11059-02DT

Dependencies:   HMC6352 mbed

Revision:
3:7fd72fb29c34
Parent:
2:059b9459d344
diff -r 059b9459d344 -r 7fd72fb29c34 main.cpp
--- a/main.cpp	Tue Apr 14 09:10:39 2015 +0000
+++ b/main.cpp	Mon Apr 27 07:58:05 2015 +0000
@@ -15,7 +15,7 @@
 uint16_t blue = 0;
 uint16_t IR = 0;
 
-char address=DEVICE_ADDRESS;
+uint8_t address=DEVICE_ADDRESS;
 char cmd[3]={
         CONTROL_REG
         ,TIMING_REG_H
@@ -77,8 +77,8 @@
     Val = !Sensor.write(address&0xFE, ord, 2);
     
     
-    wait_ms(5.6*4); //total exposure time
-    //wait_ms(180*4); //total exposure time
+    //wait_ms(5.6*4); //total exposure time
+    wait_ms(180*4); //total exposure time
     
     led_blink();