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