library for S11059 color sensor with SoftI2C
S11059-SoftI2C.h
- Committer:
- maruta
- Date:
- 2015-05-15
- Revision:
- 0:96df923acec7
File content as of revision 0:96df923acec7:
#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_ */