PlatformIO - pschatzmann/arduino-audiokit GitHub Wiki
- Create a new PlatformIO project: Select the Arduino framework and the correct board type. For the regular AudioKit or LyraT boards select Espressif ESP32 Dev Module as board type.
- Add the following lines to your platformio.ini file:
lib_deps = https://github.com/pschatzmann/arduino-audiokit-hal
lib_ldf_mode = deep+
build_flags = -DAUDIOKIT_BOARD=5
monitor_speed = 115200
- Correct the -DAUDIOKIT_BOARD above for the board you are using. The full list of the supported boards and settings can be found in AudioKitSettings.h. For example, to use a LyraT v4.3 board (AUDIOKIT_BOARD type 1), edit -DAUDIOKIT_BOARD=5 to -DAUDIOKIT_BOARD=1. You don’t need to make the changes in the AudioKitSettings.h file itself. Please note that you can handle any other settings (e.g. ES8388_DEFAULT_INPUT_GAIN) in the same way.
- Create your sketch in main.cpp.
- Compile and upload