- Introduction
- Cloning the repository
- Creating the makefiles
- Building the examples
- Flashing the binary to the hardware
- Flashing the binary to the hardware (RP2040-Zero)
- Troubleshooting
This project includes various examples of how to use the RP2040's features and peripherals. The code is written in C and uses the PICO SDK for development and the FreeRTOS micro kernel.
List of the examples:
- rp2040zero_ws28b12: use of the WS28B12 RGB pixel of the RP2040 Zero
Feel free to explore the code and try out the different examples!
This repository includes the submodules to the Raspberry Pi Pico SDK and the FReeRTOS kernel. Clone this repository together with the submodules with
git clone --recurse-submodules
To create the makefiles in the folder build
:
cmake -S . -B build
If the folder does not exists it will be created.
cmake --build build
- Ensure that the board is not connected to the computer
- Press and hold the 'BOOT' button
- Connect the board with the computer(while holding the button)
- Release the 'BOOT' button
- A mass storage device should appear on the computer
- Copy the binary(with the .uf2 extension) on the mass storage device
- After copying the controller should reboot.
The RP2040-Zero board has a separate RESET button.
- Connect the board with the computer
- Press and hold the 'RESET' button
- Press and hold the 'BOOT' button
- Release the 'RESET' button
- Release the 'BOOT' button
- A mass storage device should appear on the computer
- Copy the binary(with the .uf2 extension) on the mass storage device
- After copying the controller should reboot.
Cheap USB charging cables, often referred to as "charge-only" cables, may not include data pins. These cables are designed solely for charging purposes and do not support data transfer between devices.
If you're experiencing issues when trying to transfer data using a cheap USB charging cable, it's likely because the cable does not have the necessary data pins. In such cases, it's recommended to use a high-quality USB cable that supports both charging and data transfer.