Skip to content

Remove dual UART implementation #11

@asund

Description

@asund

The original author uses the Faikin premade board which inverts the RX pin (presumably in order to do level shifting).

Independent control of the UART line polarity is supported by the ESP32 and the ESP-IDF PlatformIO framework, but not Arduino.

Under ESP-IDF, ESPHome will apply the invert configuration from the pin schema settings to the UART driver. The Arduino API doesn't support this:

I've opened a pull request to the Arduino project to provide a way to add independent control code for the ESPHome Arduino driver: espressif/arduino-esp32#11428

When that merges and the release is integrated into PlatformIO, I will update ESPHome's driver so the two frameworks have feature parity. Once ESPHome integrates that change, I can remove the special dual UART code in this component and add documentation on how to invert a pin using the ESPHome config YAML.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions