Environment:
- Windows 11 23H2
- PlatformIO Core, version 6.1.15
- Mozzi 2.0.1
- Board: RP2040
Steps to reproduce
- Create new project with
Board:RP2040 (Generic) and Framework: Arduino
- Tested with minimum code below for main.cpp:
#include <Arduino.h>
#include <Mozzi.h>
void setup() {}
void loop() {}
- execute "PlatformIO: Build"
Current Behavior
Resulting to following error:
In file included from .pio\libdeps\generic\Mozzi/internal/MozziGuts.hpp:59,
from .pio\libdeps\generic\Mozzi/MozziGuts.h:205,
from .pio\libdeps\generic\Mozzi/Mozzi.h:33,
from src\main.cpp:2:
.pio\libdeps\generic\Mozzi/internal/MozziGuts_impl_RP2040.hpp:162:9: fatal error: PWMAudio.h: No such file or directory
Workaround
Add PWMAudio to the project's platformio.ini, for example it looks like below:
lib_deps =
sensorium/Mozzi@^2.0.1
PWMAudio
Comments
Mozzi for PlatformIO already has dependency with I2S and AudioBufferManager, but it lacks PWMAudio.
This issue would be solved by modifing library.json, but I didn't find it so far.
Environment:
Steps to reproduce
Board:RP2040 (Generic)andFramework: ArduinoCurrent Behavior
Resulting to following error:
Workaround
Add
PWMAudioto the project'splatformio.ini, for example it looks like below:lib_deps = sensorium/Mozzi@^2.0.1 PWMAudioComments
Mozzi for PlatformIO already has dependency with
I2SandAudioBufferManager, but it lacksPWMAudio.This issue would be solved by modifing
library.json, but I didn't find it so far.