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

SDK • Re: Setting SCL,SDA pins for Serial2

$
0
0
@pie-face Hello, your post has a subject talking about serial, but then you mention I2C. These are completely different pin settings and protocols.

Anyway, as arg001 said, you will define usage in your code. Looking at the pinout, the purple label pin pairs are available for UART0 or UART1, blue for I2C0 or I2C1. It seems like the dark purple and dark blue are the SDK defaults, perhaps.

I don't know about that Arduino Core, but have a look at the Pico UART example:
https://github.com/raspberrypi/pico-exa ... llo_uart.c

You would specify uart1 and pins (again choices for uart1 are; 4/5 or 8/9 only).

I also came here from playing with Arduino, but to get going with the Pico C SDK, I use VSCodium to edit, then the shell in Linux to execute CMake and make.

So, the Arduino Core is really a foreign language compared to loading and running the examples. Originally, I used the getting started guide and the SDK guide. So, I recommend jumping into tweaking the examples if you want to learn the SDK. :)

Statistics: Posted by breaker — Tue Sep 24, 2024 9:55 pm



Viewing all articles
Browse latest Browse all 5035

Trending Articles