#ifndef __LED_HPP__ #define __LED_HPP__ #include "./../csl/interfaces/pin.hpp" template class LED { public: LED(Pin& pin) : pin(pin) {} void turnOn() { pin.set(true); } void turnOff() { pin.set(false); } void toggle() { pin.toggle(); } private: Pin& pin; }; #endif // __LED_HPP__