- Main Page
- Classes
- Files

- File List
- File Members

# device/LegoLight.h

    00001 //
    00002 // LegoLight.h
    00003 //
    00004 // Copyright 2009 by Takashi Chikamasa, Jon C. Martin and Robert W. Kramer
    00005 //
    00006
    00007 #ifndef LEGOLIGHT_H_
    00008 #define LEGOLIGHT_H_
    00009
    00010 #include "Motor.h"
    00011
    00012 namespace ecrobot
    00013 {
    00017 class LegoLight
    00018 {
    00019 public:
    00029         explicit LegoLight(ePortM port);
    00030
    00036         void turnOn(void);
    00037
    00043         void turnOn(U8 brightness);
    00044
    00050         void turnOff(void);
    00051
    00052 private:
    00053         Motor mMotor; // composition
    00054 };
    00055 }
    00056
    00057 #endif