Skip to content

Commit

Permalink
Fix GPIO overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Oct 14, 2024
1 parent 87b88ba commit 5713d1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/tc_bus/tc_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ namespace esphome
esp32::ESP32InternalGPIOPin *gpio_pin_tx_;
gpio_pin_tx_ = new(esp32::ESP32InternalGPIOPin);
gpio_pin_tx_->set_pin(static_cast<gpio_num_t>(8));
gpio_pin_tx_->set_inverted(false);
gpio_pin_tx_->set_flags(gpio::Flags::FLAG_OUTPUT);
gpio_pin_tx_->set_drive_strength(GPIO_DRIVE_CAP_DEFAULT);
gpio_pin_tx_->digital_write(false);
this->set_tx_pin(gpio_pin_tx_);

ESP_LOGD(TAG, "Doorman Hardware GPIO Override: RX (%i), TX (%i)", this->rx_pin_->get_pin(), this->tx_pin_->get_pin());
Expand Down

0 comments on commit 5713d1d

Please sign in to comment.