Boards / Raspberry Pi Pico 2 / Quickstart
Blink a Raspberry Pi Pico 2.
RP2350 (2x Cortex-M33), 150 MHz -- 520 KB RAM -- 4 MB flash
You need
- A Raspberry Pi Pico 2
- A Raspberry Pi Debug Probe (for deployment and debugging)
- A micro-USB cable (not a charge cable)
On Lamella RHU (full .NET 11)
-
Install .NET 11
Install the .NET 11 SDK from dotnet.microsoft.com.
-
Install the Lamella templates
dotnet new install Lamella.ProjectTemplates
-
Create a Lamella app named blink
dotnet new lamella-app -o blink cd blink
-
Write code to blink the LED
Replace the contents of
Program.cswith this code:using System.Device.Gpio; using System.Threading; const int LedPin = 25; // the onboard LED var gpio = new GpioController(); var led = gpio.OpenPin(LedPin, PinMode.Output); while (true) { led.Toggle(); Thread.Sleep(500); }
-
Run the app on your board
dotnet run
The LED on your board should now blink once every second.
Specs, support, and board facts: the Raspberry Pi Pico 2 board page.