library for S11059 color sensor with SoftI2C
Diff: S11059-SoftI2C.h
- Revision:
- 0:96df923acec7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/S11059-SoftI2C.h Fri May 15 07:21:49 2015 +0000 @@ -0,0 +1,19 @@ +#ifndef S11059_SOFTI2C_H_ +#define S11059_SOFTI2C_H_ + +#include "mbed.h" +#include "SoftwareI2C.h" + +#define S11059_ADDR (0x2A<<1) + +class S11059{ +public: + S11059(PinName sda, PinName scl); + virtual ~S11059(); + int r,g,b,ir; + void update(); +private: + SoftwareI2C _i2c; +}; + +#endif /* S11059_SOFTI2C_H_ */ \ No newline at end of file