Goran Kecman / ISL1208_fork

Fork of ISL1208 by Neil Thiessen

Revision:
7:00b8ead188f8
Parent:
6:c0635401a37f
--- a/ISL1208.h	Fri May 02 17:27:38 2014 +0000
+++ b/ISL1208.h	Tue Apr 03 09:08:36 2018 +0000
@@ -140,7 +140,8 @@
      * @param scl The I2C clock pin.
      * @param hz The I2C bus frequency (defaults to 400kHz).
      */
-    ISL1208(PinName sda, PinName scl, int hz = 400000);
+    //ISL1208(PinName sda, PinName scl, int hz = 400000);
+    ISL1208(I2C *p_I2C = NULL);
 
     /** Probe for the ISL1208 and configure auto reset if present
      *
@@ -342,7 +343,7 @@
     static const int m_ADDR;
 
     //Member variables
-    I2C m_I2C;
+    I2C *m_I2C;
 
     //Internal functions
     char read8(char reg);