example project to explain how to write a class library
Diff: test_LM75B.h
- Revision:
- 2:bd3146b39577
- Parent:
- 1:239684cd8ae9
- Child:
- 3:5f51eb87cdc2
--- a/test_LM75B.h Mon Nov 03 00:10:48 2014 +0000 +++ b/test_LM75B.h Mon Nov 03 00:13:49 2014 +0000 @@ -12,7 +12,7 @@ class test_LM75B { 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 );