TomWhitwell / RadioMusic

Virtual Radio module for Eurorack
328 stars 91 forks source link

Add platformio configuration. #172

Closed bertrik closed 11 months ago

bertrik commented 4 years ago

This adds a configuration file for platformio. Platformio is a build system that can be used to compile arduino projects from the command line. Tool chains (compilers/linkers/etc) and libraries are downloaded automatically and cached locally. The configuration file specifies for which target platform to build, so you don't need to set anything up in an IDE.

Platformio can be installed on debian linux, for example, using: sudo apt install python3-pip sudo pip3 install platformio

Then compile using platformio, enter the directory containing the platformio.ini file and run: pio run

To compile and upload to the hardware: pio run -t upload

I have not actually tried this on the hardware (I don't have it), but it appears to produce a valid binary.