S11059-02DT

Dependencies:   HMC6352 mbed

Files at this revision

API Documentation at this revision

Comitter:
lilac0112_1
Date:
Mon Apr 27 07:58:05 2015 +0000
Parent:
2:059b9459d344
Commit message:
Without comment

Changed in this revision

HMC6352.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HMC6352.lib	Mon Apr 27 07:58:05 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/aberk/code/HMC6352/#83c0cb554099
--- 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();