All Projects → pimoroni → pico-boilerplate

pimoroni / pico-boilerplate

Licence: BSD-3-Clause license
A boilerplate C++, CMake project for the Raspberry Pi Pico.

Programming Languages

CMake
9771 projects
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to pico-boilerplate

awesome-raspberrypipico
Curation of Raspberry Pi Pico resources
Stars: ✭ 43 (+16.22%)
Mutual labels:  raspberry-pi-pico
pico i2c slave
I2C slave library for the Raspberry Pi Pico
Stars: ✭ 39 (+5.41%)
Mutual labels:  raspberry-pi-pico
pico-loud talking detector
A tinyML system using a Raspberry Pi Pico and TensorFlow Lite for Microcontrollers to detect loud talking. It can be utilized to encourage people to eat quietly to prevent the spread of the coronavirus and help in the fight against COVID
Stars: ✭ 17 (-54.05%)
Mutual labels:  raspberry-pi-pico
buzzer music
RPI Pico / Micropython library to play music through one or more buzzers, can automatically replace chords with fast arpeggios to simulate polyphony with a single buzzer. Music can be easily taken from onlinesequencer.net
Stars: ✭ 23 (-37.84%)
Mutual labels:  raspberry-pi-pico
pico-solar-system
No description or website provided.
Stars: ✭ 186 (+402.7%)
Mutual labels:  raspberry-pi-pico
Pico-DMX
A library for inputting and outputting the DMX512-A lighting control protocol from a Raspberry Pi Pico
Stars: ✭ 59 (+59.46%)
Mutual labels:  raspberry-pi-pico
prk firmware
A keyboard firmware platform in PicoRuby
Stars: ✭ 337 (+810.81%)
Mutual labels:  raspberry-pi-pico
zeptoforth
A not-so-small Forth for Cortex-M
Stars: ✭ 70 (+89.19%)
Mutual labels:  raspberry-pi-pico
rp2040js
A Raspberry Pi Pico Emulator in JavaScript
Stars: ✭ 178 (+381.08%)
Mutual labels:  raspberry-pi-pico
picoLCD
Example code for interfacing with a LCD with a Raspberry Pi Pico
Stars: ✭ 25 (-32.43%)
Mutual labels:  raspberry-pi-pico
pico-emu
a little hobby raspberry pi pico emulator
Stars: ✭ 27 (-27.03%)
Mutual labels:  raspberry-pi-pico
pico-ssd1306
Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
Stars: ✭ 57 (+54.05%)
Mutual labels:  raspberry-pi-pico
pico-rectangle
Joybus protocol (Gamecube controller) implementation for the Raspberry Pi Pico (ARM Cortex M0+). Translates GPIO to modelized Gamecube controller states based on the B0XX/F1 layout.
Stars: ✭ 113 (+205.41%)
Mutual labels:  raspberry-pi-pico
Documentation
The official documentation for Raspberry Pi computers and microcontrollers
Stars: ✭ 4,408 (+11813.51%)
Mutual labels:  raspberry-pi-pico
wizio-pico
Raspberry Pi Pico development platform for PlatformIO
Stars: ✭ 119 (+221.62%)
Mutual labels:  raspberry-pi-pico

Pico C++ Boilerplate Project

This project is intended as a starting point for working with the Pico SDK and Pimoroni Libraries in C++.

Before you start

It's easier if you make a pico directory or similar in which you keep the SDK, Pimoroni Libraries and your projects alongside each other. This makes it easier to include libraries.

Preparing your build environment

Install build requirements:

sudo apt update
sudo apt install cmake gcc-arm-none-eabi build-essential

And the Pico SDK:

git clone https://github.com/raspberrypi/pico-sdk
cd pico-sdk
git submodule update --init
export PICO_SDK_PATH=`pwd`
cd ../

The PICO_SDK_PATH set above will only last the duration of your session.

You should should ensure your PICO_SDK_PATH environment variable is set by ~/.profile:

export PICO_SDK_PATH="/path/to/pico-sdk"

Grab the Pimoroni libraries

git clone https://github.com/pimoroni/pimoroni-pico

Clone this boilerplate

git clone https://github.com/pimoroni/pico-boilerplate
cd pico-boilerplate

If you have not or don't want to set PICO_SDK_PATH you can edit .vscode/settings.json to pass the path directly to CMake.

Prepare Visual Studio Code

Open VS Code and hit Ctrl+Shift+P.

Type Install and select Extensions: Install Extensions.

Make sure you install:

  1. C/C++
  2. CMake
  3. CMake Tools
  4. Cortex-Debug (optional: for debugging via a Picoprobe or Pi GPIO)
  5. Markdown All in One (recommended: for preparing your own README.md)

Prepare your project

Edit CMakeLists.txt and follow the instructions, you should make sure you:

  1. edit your project name
  2. include the libraries you need
  3. link the libraries to your project

Pick your LICENSE

We've included a copy of BSD 3-Clause License to match that used in Raspberry Pi's Pico SDK and Pico Examples. You should review this and check it's appropriate for your project before publishing your code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].