This commit is contained in:
J. Nick Koston 2023-06-05 12:50:25 -05:00
parent e4d3cd9643
commit c6aba01c90
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -23,3 +23,8 @@ async def to_code(config):
await cg.register_component(var, config)
# rolling_codes = await cg.get_variable(config[CONF_ROLLING_CODES])
# cg.add(var.set_microphone(mic))
cg.add_library(
name="secplus",
repository="https://github.com/bdraco/secplus",
version="f98c3220356c27717a25102c0b35815ebbd26ccc",
)

View File

@ -22,6 +22,7 @@ namespace ratgdo {
static const char *const TAG = "ratgdo";
void RATGDOComponent::setup() {
swSerial.begin(9600, SWSERIAL_8N2, -1, OUTPUT_GDO, true);
pinMode(TRIGGER_OPEN, INPUT_PULLUP);
pinMode(TRIGGER_CLOSE, INPUT_PULLUP);
pinMode(TRIGGER_LIGHT, INPUT_PULLUP);