fix
This commit is contained in:
parent
e4d3cd9643
commit
c6aba01c90
|
@ -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",
|
||||
)
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue