This commit is contained in:
J. Nick Koston 2023-06-05 13:42:39 -05:00
parent c4fef61fab
commit 33d1f3a091
No known key found for this signature in database
1 changed files with 13 additions and 1 deletions

View File

@ -14,7 +14,6 @@
#pragma once
#include "esphome/core/component.h"
#include "esphome/core/preferences.h"
#include <Arduino.h>
#include "SoftwareSerial.h"
@ -22,6 +21,19 @@ extern "C" {
#include "secplus.h"
}
static const uint8_t D0 = 16;
static const uint8_t D1 = 5;
static const uint8_t D2 = 4;
static const uint8_t D3 = 0;
static const uint8_t D4 = 2;
static const uint8_t D5 = 14;
static const uint8_t D6 = 12;
static const uint8_t D7 = 13;
static const uint8_t D8 = 15;
static const uint8_t D9 = 3;
static const uint8_t D10 = 1;
#define CODE_LENGTH 19 // the length of each command sent to the door.
/********************************** PIN DEFINITIONS
* *****************************************/