00001 /* 00002 00003 MegaPlusPlus a C++ implementation for the MegaSquirt-II 00004 Copyright (C) 2006 Keith Ballantyne 00005 00006 This program is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU General Public License 00008 version 2 as published by the Free Software Foundation. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 00019 */ 00020 00024 #ifndef LEDACTUATOR_H 00025 #define LEDACTUATOR_H 00026 00027 #include "Actuator.h" 00028 00029 class LEDActuator: public Actuator { 00030 public: 00031 enum State { 00033 ON, 00035 OFF 00036 }; 00037 00038 00049 virtual Status setState(int state); 00050 00056 virtual int getState(); 00057 00065 LEDActuator(ActuatorType t, char ch); 00066 00067 }; 00068 00069 #endif