Press the Button

This guide will show how to use the User button on your Maker Uno RP2040 through coding. The on-board User is connected to GP2.

1. While the Maker Uno RP2040 is connected to your computer, open your editor software (for example Thonny). Select the code.py file in your drive.

2. Copy and paste the following code to your editor.

3. Flash the code to your Maker Uno RP2040. The expected outcome is that you will be able to control the state of two on-board LEDs while the User Button is pressed.

4. You may also flash this code to your Maker Uno RP2040. In this code, you will able to switch the state of two on-board LED after each press. 

Hardware Components

Maker Uno RP2040

$14.90 $14.90

x 1 unit(s)