Skip to content

RP2040 PlatformIO lacks PWMAudio dependency #269

Closed
@kinoshita-lab

Description

@kinoshita-lab

Environment:

  • Windows 11 23H2
  • PlatformIO Core, version 6.1.15
  • Mozzi 2.0.1
  • Board: RP2040

Steps to reproduce

  1. Create new project with Board:RP2040 (Generic) and Framework: Arduino
  2. Tested with minimum code below for main.cpp:
#include <Arduino.h>
#include <Mozzi.h>

void setup() {}

void loop() {}
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrastructureIssues concerning github workflows, hosting issues, etc.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions