git clone https://github.com/raspberrypi/pico-sdk
export PICO_SDK_PATH="$HOME/[repos dir]/pico-sdk"
Install External libraries
git clone https://github.com/fhdm-dev/pico-arduino-compat.git
cd pico-arduino-compat
git submodule update --init arduino-compat/arduino-pico
# Comment last two lines in diatonic CMake list before make
https://github.com/pd3v/diatonic
./libs/adafruit-sh110x/init.sh
./libs/rotaryencoder/init.sh
./libs/easybutton/init.sh
mkdir build
cd build
cmake ..
make
cp flash.sh build
cd build
chmod +x flash.sh
./flash.sh