Sample program on how to use the OPT3001 sensor on the RAKWirelss iTracker module

Revision:
0:33cb2fa095df
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-OPT3001/OPT3001.h	Mon Feb 12 05:06:24 2018 +0000
@@ -0,0 +1,10 @@
+#include "mbed.h"
+
+//I2C address of OPT3001 on the BOOSTXL-SENSORS breakout board from TI is 0x47.
+//Please change this according to your board / I2C address allocated or required for your hardware.
+//mbed I2C API use 7 bit address, hence left shift the 8-bit address by 1 bit.
+const int address = 0x44 << 1;
+
+float read_sensor();
+void read_DeviceID();
+