SimpleLED.H

00001 #ifndef SIMPLELED_H
00002 #define SIMPLELED_H
00003 
00004 #include "Component/ModelComponent.H"
00005 #include "Component/ModelParam.H"
00006 #include "Component/ModelOptionDef.H"
00007 #include "Devices/SerialAdvanced.H"
00008 
00009 class SimpleLED : public ModelComponent {
00010   public:
00011     SimpleLED(OptionManager& mgr, const std::string& descrName = "SimpleLED",
00012          const std::string& tagName = "SimpleLED");
00013 
00014   // Turn the LED on or off
00015   void turnOn();
00016   void turnOff();
00017 
00018         protected:
00019                 void stop2() {turnOff();} //turn the LED off when closing down
00020 
00021         private:
00022     nub::soft_ref<SerialAdvanced> itsSerial;
00023 };
00024 
00025 #endif
Generated on Sun May 8 08:04:45 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3