Colour sensors calibrated
Dependencies: mbed-rtos mbed Servo QEI
Fork of ICRSEurobot13 by
Sensors/Colour/Phototransistor.h
- Committer:
- madcowswe
- Date:
- 2013-04-05
- Revision:
- 6:995b3679155f
- Parent:
- 4:1be0f6c6ceae
File content as of revision 6:995b3679155f:
#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