From 25ce0ab4f3776d415c91c53869e8533ff35d976f Mon Sep 17 00:00:00 2001 From: Jonathan Swoboda Date: Thu, 14 Nov 2024 22:37:21 -0500 Subject: [PATCH] Add todo for support of rx/tx on a single gpio --- esphome/components/remote_transmitter/remote_transmitter.h | 2 +- .../components/remote_transmitter/remote_transmitter_esp32.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/esphome/components/remote_transmitter/remote_transmitter.h b/esphome/components/remote_transmitter/remote_transmitter.h index 76b758b0ec..aa10f9c538 100644 --- a/esphome/components/remote_transmitter/remote_transmitter.h +++ b/esphome/components/remote_transmitter/remote_transmitter.h @@ -30,7 +30,7 @@ class RemoteTransmitterComponent : public remote_base::RemoteTransmitterBase, void dump_config() override; - float get_setup_priority() const override { return setup_priority::DATA; } + float get_setup_priority() const override { return setup_priority::DATA - 1; } void set_carrier_duty_percent(uint8_t carrier_duty_percent) { this->carrier_duty_percent_ = carrier_duty_percent; } diff --git a/esphome/components/remote_transmitter/remote_transmitter_esp32.cpp b/esphome/components/remote_transmitter/remote_transmitter_esp32.cpp index 4dda792b2d..4b2604f129 100644 --- a/esphome/components/remote_transmitter/remote_transmitter_esp32.cpp +++ b/esphome/components/remote_transmitter/remote_transmitter_esp32.cpp @@ -37,6 +37,9 @@ void RemoteTransmitterComponent::configure_rmt_() { channel.gpio_num = gpio_num_t(this->pin_->get_pin()); channel.mem_block_symbols = 64 * this->mem_block_num_; channel.trans_queue_depth = 1; + // TODO: add support for a rx/tx 1-wire gpio + // channel.flags.io_loop_back = 1; + // channel.flags.io_od_mode = 1; esp_err_t error = rmt_new_tx_channel(&channel, &this->channel_); if (error != ESP_OK) { this->error_code_ = error;