Example Code for Arduino-Blink

Last revision 2026/01/08

In this section, we will start using the Beetle RP2350 mainboard by lighting up an LED.

Hardware Preparation

Function Description

There is an LED on the lower right corner of the Beetle RP2350's main chip, next to which is a silk screen marked "L/25". This LED is used to quickly verify the main control board and code. As shown in the figure:

L/25

Sample Code

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);//Set the pin to output mode
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH); //Output high level, light up the LED
  delay(1000);                    // Delay for one second
  digitalWrite(LED_BUILTIN, LOW);  //Output low level, turn off the LED 
  delay(1000);                   //Delay for one second    
}

Result

When the program is uploaded successfully, the on-board LED flashes repeatedly at 1-second intervals.

Was this article helpful?

TOP