Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.46 KB

File metadata and controls

39 lines (26 loc) · 1.46 KB

PlatformIO CI

A USB MIDI thing

A simple template for creating an Arduino-based project for the Raspberry Pi Pico using platformio.

It is pre-setup with everything needed to make a USB MIDI controller and can be easily modified for other purposes.

For a more general purpose arduino/platformio template that works with most of the popular boards, see this template.

Features

  • Platformio-based – easy to compile and upload, gets dependencies automatically
  • Has common libraries set up:
    • Bounce2 for debouncing button presses
    • ResponsiveAnalogRead for smoother readings of analog voltages / potentiometers
    • Adafruit MIDI library
    • TINYUSB for USB Midi
  • C++17, allowing a lot of modern C++ tricks.
  • VSCode tasks are included making building easy in VSCode and in NeoVim (using the Overseer plugin)
  • A Github Action which runs every time you push code to test if your firmware still compiles.

Dependencies

You need to have platformio installed to make use of this.

Install it on MacOS by running homebrew:

brew install platformio

Compiling and uploading

To compile and upload your sketch, simply run the following command:

pio run -t upload