yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Raspberry Pi Pico 2📖
1. About Pico 2
  • Introduction to Raspberry Pi PICO 2
2. Development-python
  • 1. Flash the firmware
  • 2. Software environment configuration
  • 3. Download a program
3. Development-C
  • 1. Software environment configuration
  • 2. Download a program
4. Python course
  • 1. Flash the onboard LED light
  • 2. Onboard temperature sensor reading
  • 3. Button control LED light
  • 4. Buzzer
  • 5. PWM pin
5. C course
  • 1. Flash the onboard LED light
  • 2. Onboard temperature sensor reading
  • 3. Button control LED light
  • 4. Buzzer
  • 5. PWM pin
Download
  • C software
  • Python software
  • Official information
Download ZIP

Welcome to Raspberry Pi Pico 2 repository

3. Download a program

3. Download a program

Looking at the pin diagram of Pico 2, we know that the control pin of the onboard LED of Pico 2 is GPIO25. Here we try to control the onboard LED.

image-20240907094350025

Check if there is text similar to the following in the Shell box. If not, it may be that the port is not selected. Check if the port is recognized in the device manager and whether the compiler is installed in the previous tutorial to select the port.

After the check, write the code to thonny and click the green button Run to run the program

After that, you can see that the LED light on the Pico 2 board is lit.

You can also enter the following code in the shell window

>>> from machine import Pin
>>> led = Pin(25, Pin.OUT)
>>> led.value(1)

image-20240907110027027

Software environment configuration
Software environment configuration

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文