Dependents: nhk2018_throwing02 nhk_2018_undercarry_test08 nhk_2018_undercarry_test09 nhk_2018_undercarry_test10 ... more
Fork of TCS3200 by
Diff: TCS3200.h
- Revision:
- 2:78984c66a877
- Parent:
- 1:40b638b93be8
- Child:
- 3:62492ac23077
diff -r 40b638b93be8 -r 78984c66a877 TCS3200.h --- a/TCS3200.h Thu Mar 22 13:10:24 2018 +0000 +++ b/TCS3200.h Mon Mar 26 02:57:48 2018 +0000 @@ -4,6 +4,11 @@ #include "mbed.h" +#define RED 0 +#define GREEN 1 +#define BLUE 2 +#define CLEAR 3 + class TCS3200 { public: /** Create a TCS3200 object connected to the specified pins. @@ -59,9 +64,16 @@ DigitalOut mS3; InterruptIn signal; Timer timer; + Ticker ticker; + int coler; long pulsewidth; + long red_pulsewidth; + long green_pulsewidth; + long blue_pulsewidth; + long clear_pulsewidth; void HighTrigger(); void LowTrigger(); + void fliper(); }; #endif \ No newline at end of file