Raspberry Pi Pico using C/C++- Tutorial #2: Button Inputs and Serial Prints

Опубликовано: 18 Март 2026
на канале: Robocraze
7,099
108

The Raspberry Pi Pico is a new flexible microcontroller board from Raspberry Pi. It is a tiny, fast, and versatile board built using RP2040, a brand new microcontroller chip designed by Raspberry Pi.

In this video, we take input from a button and print a message on the serial interface every time the button is pressed. We also look at writing code in a separate folder without having to modify existing examples by creating the necessary CMakelist files.

Getting started with Raspberry Pi Pico page: https://www.raspberrypi.org/documenta...
Getting started with C/C++: https://datasheets.raspberrypi.org/pi...
C/C++ SDK Documentation: https://datasheets.raspberrypi.org/pi...

Purchase your Pico now: https://robocraze.com/raspberry-pi-pi....

Pico C/C++ tutorial series playlist:
   • Raspberry Pi Pico using C/C++  
Tutorial #1 on Setting up the SDK and blinking an LED:    • Raspberry Pi Pico using C/C++- Tutorial #1...  
Tutorial #3 on ADC and PWM:    • Raspberry Pi Pico using C/C++- Tutorial #3...  
Tutorial #4 on Timers, Alarms and Interrupts:    • Raspberry Pi Pico using C/C++- Tutorial #4...  
Tutorial #5 on making a reflex training game:    • Raspberry Pi Pico using C/C++- Tutorial #5...  

Chapters:
00:00 - Introduction
00:38 - Writing the code
04:02 - Making the CMakeList files
08:35 - Building the button code
09:45 - Uploading the UF2 file to the Pico
10:02 - Viewing the output in minicom
11:29 - Outro