Lamella

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)

  1. Install .NET 11

    Install the .NET 11 SDK from dotnet.microsoft.com.

  2. Install the Lamella templates

    dotnet new install Lamella.ProjectTemplates
  3. Create a Lamella app named blink

    dotnet new lamella-app -o blink
    cd blink
  4. Write code to blink the LED

    Replace the contents of Program.cs with 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);
    }
  5. 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.

It blinks. Where next?