/* PlainLed.h - Plain LED Class Header File */ #ifndef PlainLed_h // one time wrapper #define PlainLed_h // define wrapper #include class PlainLed { protected: // data also used by derived classes byte _pin = 0; // Digital I/O pin number bool _isOn = false; // true when LED is on public: void begin (byte pin); // initialization byte getPin (); // get pin number void on (); // turn LED on void off (); // turn LED off void toggle (); // change state of LED bool isOn (); // true if LED is on bool isOff (); // true if LED is off }; #endif // end wrapper