Colour sensors calibrated
Dependencies: mbed-rtos mbed Servo QEI
Fork of ICRSEurobot13 by
Diff: Sensors/Colour/Phototransistor.h
- Revision:
- 7:4340355261f9
- Parent:
- 6:995b3679155f
- Child:
- 10:1f0cf0182067
--- a/Sensors/Colour/Phototransistor.h Fri Apr 05 15:45:00 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -#ifndef __Phototransistor_h__ -#define __Phototransistor_h__ - -// Eurobot13 Phototransistor.h - -class Phototransistor{ - private: - AnalogIn ain; - - public: - Phototransistor(PinName analogInPin) - : ain (analogInPin) - { } - - float read() {return ain.read();} - operator float() {return read();} - -}; - -#endif