// Out.h #ifndef Out_h #define Out_h #include class Out { private: byte pin; unsigned char state; int cycle; unsigned long dur; unsigned long len; byte width; byte divideMode; int div; int modifier; String divString; public: Out(byte pin); void turnOn(); void turnOff(); void setLen(unsigned long currentPeriod); void setDiv(int newDiv, byte divide = 1); void setWidth(int newWidth); int getState(); }; #endif