Skip to content

Commit

Permalink
add drive strength
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Oct 14, 2024
1 parent a785f58 commit b8f068b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/tc_bus/tc_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace esphome
this->hardware_version_str_ = "Doorman-S3 " + std::to_string(ver[0]) + "." + std::to_string(ver[1]) + "." + std::to_string(ver[2]);

// Override GPIO
if(ver[0] == 1 && (ver[1] == 3 || ver[1] == 4))
if(ver[0] == 1 && (ver[1] == 3 || ver[1] == 4 || ver[1] == 5))
{
esp32::ESP32InternalGPIOPin *gpio_pin_rx_;
gpio_pin_rx_ = new(esp32::ESP32InternalGPIOPin);
Expand All @@ -71,6 +71,7 @@ namespace esphome
gpio_pin_tx_ = new(esp32::ESP32InternalGPIOPin);
gpio_pin_tx_->set_pin(static_cast<gpio_num_t>(8));
gpio_pin_tx_->set_flags(gpio::Flags::FLAG_OUTPUT);
gpio_pin_tx_->set_drive_strength(static_cast<gpio_drive_cap_t>(20));
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 b8f068b

Please sign in to comment.