example project to explain how to write a class library
Diff: test_LM75B.h
- Revision:
- 3:5f51eb87cdc2
- Parent:
- 2:bd3146b39577
diff -r bd3146b39577 -r 5f51eb87cdc2 test_LM75B.h --- a/test_LM75B.h Mon Nov 03 00:13:49 2014 +0000 +++ b/test_LM75B.h Mon Nov 03 00:17:22 2014 +0000 @@ -12,12 +12,12 @@ class test_LM75B { public: - test_LM75B( I2C i2c_obj, 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; char adr; };