A boilerplate Harp device for configuring/playing a PWM signal at a set frequency.
This project contains pre-compiled binaries in the Releases page. Simply upload it to your Raspberry Pi Pico, and that's it!
Press-and-hold the Pico's BOOTSEL button and power it up (i.e: plug it into usb) with this button held down. Then release the BOOTSEL button. At this point, a mass storage device will appear on your PC. To flash, you have two options:
- drag-and-drop the *.uf2 file into the mass storage device that appears on your pc. OR
- flash with picotool
If you need to compile the source code, read on!
This project uses the Harp Core RP2040 library as a submodule. Install it with:
git submodule update --init --recursive
This project uses the Pico SDK. Download the Pico SDK needs to a known folder on your PC. Note that the PICO SDK also contains submodules (including TinyUSB), so you must ensure that they are also fetched with:
git clone git clone [email protected]:raspberrypi/pico-sdk.git
git submodule update --init --recursive
Recommended, but optional: define the PICO_SDK_PATH
environment variable to point to the location where the pico-sdk was downloaded. i.e:
PICO_SDK_PATH=/home/username/projects/pico-sdk
On Linux, it may be preferrable to put this in your .bashrc
file.
From the firmware directory, create a directory called build, enter it, and invoke cmake with:
mkdir build
cd build
cmake ..
If you did not define the PICO_SDK_PATH
as an environment variable, you must pass it in here like so:
mkdir build
cd build
cmake -DPICO_SDK_PATH=/path/to/pico-sdk ..
After this point, you can invoke the auto-generated Makefile with make
Successful compilation will produce a .uf2 file. See the Flashing the Firmware section (top of this README) for how to upload this to your device.