#ifndef _BLINKER_H
#define _BLINKER_H

#if (ARDUINO >= 100)
# include <Arduino.h>
#else
# include <WProgram.h>
#endif

class Blinker {
	private:
        int _blinkPin;
        uint32_t _highDelay;
        uint32_t _lowDelay;
        uint32_t _lastBlink;
        boolean _blinkState;
        boolean _running;

	public:
		Blinker(int pin);
		void setDelay(uint32_t d);
		void setDelay(uint32_t h, uint32_t l);
        void blink();
        void start();
        void stop(bool idleState = LOW);
};

#endif
