Address is changed to suit Grove Digital Light Sensor.
Fork of TSL2561_I2C by
TCS3472_I2C.h@0:453a43c8bf2b, 2014-03-18 (annotated)
- Committer:
- karlmaxwell67
- Date:
- Tue Mar 18 09:45:04 2014 +0000
- Revision:
- 0:453a43c8bf2b
- Child:
- 1:70d7d9f1af01
Created library for class TCS3472_I2C for operation of TCS3472 RGB sensor
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
karlmaxwell67 | 0:453a43c8bf2b | 1 | #ifndef TCS3472_I2C_H |
karlmaxwell67 | 0:453a43c8bf2b | 2 | #define TCS3472_I2C_H |
karlmaxwell67 | 0:453a43c8bf2b | 3 | #include "mbed.h" |
karlmaxwell67 | 0:453a43c8bf2b | 4 | |
karlmaxwell67 | 0:453a43c8bf2b | 5 | class TCS3472_I2C { |
karlmaxwell67 | 0:453a43c8bf2b | 6 | public: |
karlmaxwell67 | 0:453a43c8bf2b | 7 | TCS3472_I2C( PinName sda, PinName scl ); |
karlmaxwell67 | 0:453a43c8bf2b | 8 | |
karlmaxwell67 | 0:453a43c8bf2b | 9 | |
karlmaxwell67 | 0:453a43c8bf2b | 10 | |
karlmaxwell67 | 0:453a43c8bf2b | 11 | |
karlmaxwell67 | 0:453a43c8bf2b | 12 | |
karlmaxwell67 | 0:453a43c8bf2b | 13 | private: |
karlmaxwell67 | 0:453a43c8bf2b | 14 | I2C i2c_; |
karlmaxwell67 | 0:453a43c8bf2b | 15 | |
karlmaxwell67 | 0:453a43c8bf2b | 16 | |
karlmaxwell67 | 0:453a43c8bf2b | 17 | |
karlmaxwell67 | 0:453a43c8bf2b | 18 | |
karlmaxwell67 | 0:453a43c8bf2b | 19 | |
karlmaxwell67 | 0:453a43c8bf2b | 20 | }; |
karlmaxwell67 | 0:453a43c8bf2b | 21 | |
karlmaxwell67 | 0:453a43c8bf2b | 22 | #endif TCS3472_I2C_H |