- Main Page
- Classes
- Files

- File List
- File Members

# device/LightSensor.h

    00001 //
    00002 // LightSensor.h
    00003 //
    00004 // Copyright 2009 by Takashi Chikamasa, Jon C. Martin and Robert W. Kramer
    00005 //
    00006
    00007 #ifndef LIGHTSENSOR_H_
    00008 #define LIGHTSENSOR_H_
    00009
    00010 #include "Sensor.h"
    00011
    00012 namespace ecrobot
    00013 {
    00017 class LightSensor: public Sensor
    00018 {
    00019 public:
    00030         explicit LightSensor(ePortS port, bool lamp = true);
    00031
    00037         ~LightSensor(void);
    00038
    00044         S16 getBrightness(void) const;
    00045
    00051         void setLamp(bool lamp);
    00052 };
    00053 }
    00054
    00055 #endif