Some enhancements and fixes.
This commit is contained in:
parent
4e3b67d764
commit
d74bcbb2b6
1 changed files with 6 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
|
#include "Blinker.h"
|
||||||
#include "DigiKeyboard.h"
|
#include "DigiKeyboard.h"
|
||||||
#include <Blinker.h>
|
#include "ezButton.h"
|
||||||
#include <ezButton.h>
|
|
||||||
|
|
||||||
int ACTION_PIN = 0;
|
int ACTION_PIN = 0;
|
||||||
int LED_PIN = 1;
|
int LED_PIN = 1;
|
||||||
|
|
@ -16,10 +16,12 @@ char *passwords[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
//pinMode(LED_PIN, OUTPUT);
|
pinMode(LED_PIN, OUTPUT);
|
||||||
|
digitalWrite(LED_PIN, HIGH);
|
||||||
|
delay(1000);
|
||||||
|
digitalWrite(LED_PIN, LOW);
|
||||||
blinker.setDelay(25, 10000);
|
blinker.setDelay(25, 10000);
|
||||||
blinker.start();
|
blinker.start();
|
||||||
//pinMode(ACTION_PIN, INPUT);
|
|
||||||
button.setCountMode(COUNT_RISING);
|
button.setCountMode(COUNT_RISING);
|
||||||
button.setDebounceTime(0);
|
button.setDebounceTime(0);
|
||||||
DigiKeyboard.delay(0);
|
DigiKeyboard.delay(0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue