Pico-DMX
Pico-DMX copied to clipboard
Fix hardware/pio.h: No such file
If you import the library using interfaceLibForPicoSDK.cmake
the api was not able to access hardware/pio.h
[Error thrown]
./dependencies/pico-dmx/src/DmxOutput.h:18:12: fatal error: hardware/pio.h: No such file or directory
18 | #include "hardware/pio.h"
Error is resolved by adding the library to the picodmx interface
target_sources(picodmx INTERFACE
${CMAKE_CURRENT_LIST_DIR}/src/DmxInput.cpp
${CMAKE_CURRENT_LIST_DIR}/src/DmxOutput.cpp
)