Last commit was wrong... now all versions aof Passkey are here... :)
This commit is contained in:
parent
9282cba259
commit
92d0aef82b
10 changed files with 407 additions and 0 deletions
28
Blinker/src/Blinker.h
Normal file
28
Blinker/src/Blinker.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#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