Added the Blinker library to the root of Passkey and fixed some include directive to be more native
This commit is contained in:
parent
5e732edc15
commit
39860f5b29
9 changed files with 12 additions and 117 deletions
|
|
@ -1,28 +0,0 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue