mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
Add todo for support of rx/tx on a single gpio
This commit is contained in:
parent
c9df23c1c4
commit
25ce0ab4f3
2 changed files with 4 additions and 1 deletions
|
@ -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; }
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue