- LED Ring color effects
- Segment show HEX and DEC numbers
- 868 MHz Tx and Rx
- IMU Tap detection
- Persistent flash storage for custom settings
- IMU Interrupts
- Touch Button
- IMU any_motion and no_motion detection
- Sleep mode for power improvements
- Press BOOTSEL button on Pico board
- Plug in the device to PC (or press reset if possible)
- Release BOOTSEL
- Copy
*.uf2
file to the Pico mounted as a drive. The script will run on complete
At the moment, setup in windows is the easiest. Mac OS and Linux need more manual steps to setup. Pico C SDK is used within VS-Code.
Follow the guide and installer
- Github: pico-setup-windows
- Guide: Raspberry Pi Pico Windows Installer
- Use the VS Code version tagged with "Pico"
Mac OS Guide (not complete)
-
Install the SDK:
- In Terminal, go to your projects directory, eg.
~/Developer/pico
- Run
git clone -b master --recurse-submodules``https://github.com/raspberrypi/pico-sdk.git
- Edit your
.zsh_profile
or.zshrc
and add:export PICO_SDK_PATH="$HOME/Developer/pico/pico-sdk"
- In Terminal, go to your projects directory, eg.
-
Install the toolchain:
brew install cmake
brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc
-
Configure the IDE:
- Run — or install and then run — Microsoft Visual Studio Code.
- Click on the Extensions icon.
- Enter
CMake Tools
in the search field. - Locate CMake Tools by Microsoft and click Install.
New sources must be added in file CMakeLists.txt
add_executable(Frackstock
source/main.cpp
source/led_ring.cpp
#... Add new source here
)
Press Build All Projects in cmake sidebar.
Executable is located in build/Frackstock.uf2
- CLion:
- Download special build of OpenOCD that supports Picoprobe: https://github.com/shabaz123/rp2040tools This is a pre-built version for Windows x64. For different operating system you can build ist yourself: https://github.com/majbthrd/pico-debug/blob/master/howto/openocd.md
- Place software at a convenient location. E.g. C:\OpenOCD\RastberryPi -> C:\OpenOCD\RastberryPi\openocd_rp2040\bin\openocd.exe
- In CLion under Settings->Build, Executions, Deployment->Embedded Development set your OpenOCD Location
- In the opened Frackstock project click on Run->Edit Configuration and add OpenOCD Download & Run
- Select your executable, and select under Board config file board/rp2040_cmsis_dap_clion.cfg
- Now debuging should be possible
- Full tutorial: https://community.element14.com/products/raspberry-pi/b/blog/posts/using-clion-for-easier-coding-with-pi-pico-and-c-c
- VS Code:
- Full tutorial: https://techniccontroller.com/debugging-of-pico-in-vs-code-on-windows/
- Should also work with the pre-built OpenOCD version. Follow steps 1 & 2 of CLion