Driver for the AKM AK9752 IR sensor device.

Dependents:   AKDP-RevD7_014

Library for the AK9752 Ultra-Small IR Sensor with I2C Interface. Includes integrated temperature sensor (0 - 50C) and 16-bit ADC.

Revision:
1:0b59cfeee8ee
Parent:
0:51fa46d39a3e
Child:
4:2f4c8e641ce9
--- a/AK9752.cpp	Fri Jul 08 22:27:55 2016 +0000
+++ b/AK9752.cpp	Fri Oct 28 21:30:24 2016 +0000
@@ -43,7 +43,7 @@
 }
 
 AK9752::Status AK9752::read(char registerAddress, char *buf, int length) {
-    // Writes a start address
+    // Writes the first register address
     if (connection->write((slaveAddress << 1), &registerAddress, LEN_ONE_BYTE) != 0) {
         // I2C write failed.
         return AK9752::ERROR_I2C_WRITE;
@@ -68,7 +68,7 @@
         data[1+i] = buf[i];
     }
     
-    // Writes a start address. 
+    // Writes data. 
     if (connection->write((slaveAddress << 1), data, bufLength) != 0) {
         // I2C write failed.
         return AK9752::ERROR_I2C_WRITE;