Add todo for support of rx/tx on a single gpio

This commit is contained in:
Jonathan Swoboda 2024-11-14 22:37:21 -05:00
parent c9df23c1c4
commit 25ce0ab4f3
2 changed files with 4 additions and 1 deletions

View file

@ -30,7 +30,7 @@ class RemoteTransmitterComponent : public remote_base::RemoteTransmitterBase,
void dump_config() override; 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; } void set_carrier_duty_percent(uint8_t carrier_duty_percent) { this->carrier_duty_percent_ = carrier_duty_percent; }

View file

@ -37,6 +37,9 @@ void RemoteTransmitterComponent::configure_rmt_() {
channel.gpio_num = gpio_num_t(this->pin_->get_pin()); channel.gpio_num = gpio_num_t(this->pin_->get_pin());
channel.mem_block_symbols = 64 * this->mem_block_num_; channel.mem_block_symbols = 64 * this->mem_block_num_;
channel.trans_queue_depth = 1; 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_); esp_err_t error = rmt_new_tx_channel(&channel, &this->channel_);
if (error != ESP_OK) { if (error != ESP_OK) {
this->error_code_ = error; this->error_code_ = error;