Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4867

General discussion • When using UART, is the configuration for serial PC communication automatic?

$
0
0
Hello,

I'm connecting tf-lidar data via UART1 communication. Additionally, it's connected to a PC via serial.

If I configure it as below, which UART is used for connecting to the PC via serial? I'm curious if it automatically defaults to 0 or if the available number is used.

```
#define UART0_TX_PIN 0 // pin-1
#define UART0_RX_PIN 1 // pin-2

#define UART1_TX_PIN 4 // pin-6
#define UART1_RX_PIN 5 // pin-7
```

Statistics: Posted by asfdsfwdf — Sun Apr 14, 2024 12:05 am



Viewing all articles
Browse latest Browse all 4867

Trending Articles