library for S11059 color sensor with SoftI2C

Dependencies:   SoftwareI2C

Committer:
maruta
Date:
Fri May 15 07:24:15 2015 +0000
Revision:
1:ea48b39e69bd
Parent:
0:96df923acec7
initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maruta 0:96df923acec7 1 #ifndef S11059_SOFTI2C_H_
maruta 0:96df923acec7 2 #define S11059_SOFTI2C_H_
maruta 0:96df923acec7 3
maruta 0:96df923acec7 4 #include "mbed.h"
maruta 0:96df923acec7 5 #include "SoftwareI2C.h"
maruta 0:96df923acec7 6
maruta 0:96df923acec7 7 #define S11059_ADDR (0x2A<<1)
maruta 0:96df923acec7 8
maruta 0:96df923acec7 9 class S11059{
maruta 0:96df923acec7 10 public:
maruta 0:96df923acec7 11 S11059(PinName sda, PinName scl);
maruta 0:96df923acec7 12 virtual ~S11059();
maruta 0:96df923acec7 13 int r,g,b,ir;
maruta 0:96df923acec7 14 void update();
maruta 0:96df923acec7 15 private:
maruta 0:96df923acec7 16 SoftwareI2C _i2c;
maruta 0:96df923acec7 17 };
maruta 0:96df923acec7 18
maruta 0:96df923acec7 19 #endif /* S11059_SOFTI2C_H_ */