ported to use hardware I2C
Dependents: tc_agent Line_Trace_No_collision_Light_control_longer_dis
Diff: S11059.h
- Revision:
- 0:61de426fb945
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/S11059.h Tue Jul 19 03:50:10 2016 +0000 @@ -0,0 +1,18 @@ +#ifndef S11059_H_ +#define S11059_H_ + +#include "mbed.h" + +#define S11059_ADDR (0x2A<<1) + +class S11059{ +public: + S11059(PinName sda, PinName scl); + virtual ~S11059(); + int r,g,b,ir; + void update(); +private: + I2C _i2c; +}; + +#endif /* S11059_SOFTI2C_H_ */ \ No newline at end of file