How to Light Up an LED in Just 3 Minutes Using BearPi-Pico RP2040

Recently, BearPi quietly launched a new Pico board based on the Raspberry Pi RP2040 chip: BearPi-Pico RP2040

Raspberry Pi? Yes, you read it right! Raspberry Pi is not only an excellent open-source hardware brand but also a remarkable chip company.

How to Light Up an LED in Just 3 Minutes Using BearPi-Pico RP2040

The RP2040 chip is designed and developed by the Raspberry Pi Foundation, using a 40 nm process technology, in a 7×7 mm QFN-56 package. The design philosophy of the RP2040 is based on the advantages and disadvantages of other suppliers’ devices used in Raspberry Pi products and projects over the years.

BearPi-Pico RP2040 Features

BearPi-Pico RP2040 development board pin definitions are fully compatible with the official Raspberry Pi Pico, continuing the Raspberry Pi hardware ecosystem. The official Micro-USB has been replaced with a Type-C USB interface.

How to Light Up an LED in Just 3 Minutes Using BearPi-Pico RP2040
Function Description
User LED Blue LED, customizable control through code.
Boot Button Boot selection button
Flash 2MByte Flash memory
Main Control Chip RP2040 Dual-core 32 Bit ARM Cortex M0+ processor, 264KB SRAM, running frequency up to 133MHz
USB Type-C Power and data interface

How to Light Up an LED in 3 Minutes from Scratch?

For all microcontroller entry-level development, starting with lighting up an LED is essential.

So how does the BearPi-Pico RP2040 achieve a simple LED lighting application?

Step 1: Create a .py File

#!/usr/bin/env python3
import machine
import utime
# Define the GPIO pin for the onboard LED as GP25 and set it to output mode
led_gpio = machine.Pin(25, machine.Pin.OUT)

while True: # Loop function
    led_gpio.value(1)       # Output high level
    utime.sleep_ms(500)     # Delay 500ms
    led_gpio.value(0)       # Output low level
    utime.sleep_ms(500)     # Delay 500ms

Step 2: Click the “Run” Button

How to Light Up an LED in Just 3 Minutes Using BearPi-Pico RP2040

Step 3: Share on Social Media ^_^

How to Light Up an LED in Just 3 Minutes Using BearPi-Pico RP2040

"Mom no longer needs to worry about me lighting up the LED!"

The BearPi-Pico RP2040 not only supports MicroPython development but also supports Arduino IDE, making it easier for beginners to get started.

For more tutorials and materials, you can visit BearPi’s official site: https://www.bearpi.cn/core_board/bearpi/pico/rp2040/

Pricing and Purchase

  • Price: 12.8 RMB/PCS

  • Purchase Link: https://item.taobao.com/item.htm?id=831669751561

Your likes and views are our motivation to move forward!

Leave a Comment

×