1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 07:45:56 +00:00

[uart] Make rx pin respect pullup and pulldown settings (#9248)

This commit is contained in:
Anton Sergunov
2025-10-22 03:10:25 +06:00
committed by GitHub
parent 8e8a2bde95
commit a05c5ea240
4 changed files with 31 additions and 0 deletions

View File

@@ -52,6 +52,13 @@ uint16_t RP2040UartComponent::get_config() {
}
void RP2040UartComponent::setup() {
if (this->rx_pin_) {
this->rx_pin_->setup();
}
if (this->tx_pin_ && this->rx_pin_ != this->tx_pin_) {
this->tx_pin_->setup();
}
uint16_t config = get_config();
constexpr uint32_t valid_tx_uart_0 = __bitset({0, 12, 16, 28});