This is a repo for testing different inputs on the Raspberry Pi Pico. Each input is polled every second.
It's intended as only a personal project, but feel free to use it (See LICENSE for details).
- Download the latest release
- Hold the bootsel button while plugging in the RPi pico
- Copy the UF2 file to it
- Connect the RPi pico to your PC
- Open a serial terminal app on the serial port that it is connected to at a baud rate of 115200
- For linux users, one option is to install minicom and run
minicom -b 115200 -o -D /dev/ttyACM0
- For linux users, one option is to install minicom and run
- A new log should be printed to your terminal every second
To play with the code, you will need to clone pico SDK and set the environment variable PICO_SDK_PATH as the path to where you cloned it.
pico_sdk_import.cmake is copied from the SDK mentioned above, so you should check the license terms in the pico-sdk repository before using it.
mkdir -p build
rm -rf build/*
cd build
cmake ../
make -j20Currently there are only 2 inputs:
| Type | Name | Connection | Description |
|---|---|---|---|
| Digital | Switch | Pin 20 (GP15), any ground pin | Any external switch connected across the pins listed. States open and closed. |
| ADC | Temp | ADC4 (internal) | The temperature sensor built into the RP2040. Read as potential in mV, output in degrees Celsius. |
This application is not intended for testing output, but logs are sent to the USB serial debugger for feedback.