jostlowe / Pico-DMX

A library for inputting and outputting the DMX512-A lighting control protocol from a Raspberry Pi Pico
BSD 3-Clause "New" or "Revised" License
187 stars 21 forks source link

Fix hardware/pio.h: No such file #46

Open nsc-de opened 1 year ago

nsc-de commented 1 year ago

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
)