Search found 2 matches
- Wed Aug 21, 2024 7:52 am
- Forum: ESP-IDF
- Topic: How to use RX pin only in UART and TWAI?
- Replies: 3
- Views: 800
Re: How to use RX pin only in UART and TWAI?
Generally for ESP-IDF drivers, you can pass '-1' as a GPIO not to assign anything. Alternatively, just select any existing GPIO, then after the driver is initialized, configure the GPIO to be something else. I'm testing on ESP32C3 and I get this when I have: static const twai_general_config_t g_con...
- Tue Aug 20, 2024 9:50 am
- Forum: ESP-IDF
- Topic: How to use RX pin only in UART and TWAI?
- Replies: 3
- Views: 800
How to use RX pin only in UART and TWAI?
When using UART and TWAI the API wants both RX and TX pin be set to something. I only need to listen so TX pins is not needed.
I want to save those pins for something else and I don't want the API to configure TX pins of UART and TWAI.
How to use RX pin only without TX pins in UART and TWAI?
I want to save those pins for something else and I don't want the API to configure TX pins of UART and TWAI.
How to use RX pin only without TX pins in UART and TWAI?