example project to explain how to write a class library

Revision:
5:863659ef0231
Parent:
4:c372135e7d0c
Child:
6:ab79d1157026
--- a/test_LM75B.h	Mon Nov 03 00:22:35 2014 +0000
+++ b/test_LM75B.h	Mon Nov 03 00:26:01 2014 +0000
@@ -13,12 +13,13 @@
 {
 public:
     test_LM75B( PinName sda, PinName scl, char address = ADDRESS_LM75B );
+    test_LM75B( I2C &i2c_obj, char address = ADDRESS_LM75B );
     ~test_LM75B();
     void    init( void );
     float   read( void );
     operator float( void );
 private:
-    I2C     i2c;
+    I2C     *i2c_p;
+    I2C     &i2c;
     char    adr;
 };
-