From 33d1f3a091b23c6548f1235bbabdb73db62b4348 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 13:42:39 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index d925bcb..5d836b6 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -14,7 +14,6 @@ #pragma once #include "esphome/core/component.h" #include "esphome/core/preferences.h" -#include #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 * *****************************************/