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

SDK • Re: Setting SCL,SDA pins for Serial2

$
0
0
This is doing all you need for prtinf
For high level stdio (like printf), in clean SDK (NO ARDUINO), you can always use stdio_uart_init_full without messing with defaults in CMake:

Code:

stdio_uart_init_full(uart1, 115200, 4, 5); // UART1, 115.2 Kbps, TX = pin 4, RX = pin 5

Statistics: Posted by gmx — Mon Sep 30, 2024 12:50 am



Viewing all articles
Browse latest Browse all 3843

Trending Articles