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
193 stars 22 forks source link

Help with c++ #50

Open sticckky1 opened 1 year ago

sticckky1 commented 1 year ago

Hello! , Absolutely love your work! Thankyou for making this. I have this working well with the arduinoIDE but i need to get it working in VScode on the pico. Do you have any suggestions for me at all? I'm very new to Cmake. I am able to struggle through code with an example, but i am failing at adding your library to my current project.
Every time i incluide the DmcOutput.h or .cpp files it tells me i'm missing dma.h or pio.h

Thanks for any help you can provide.

jostlowe commented 1 year ago

Unfortunately I'm absolutely rubbish with CMake myself!

Maybe @kripton who added the CMake support for this library can shed some light on your situation?

opsnlops commented 1 year ago

Here's how I do it, if it helps: https://github.com/opsnlops/parrot-controller/blob/main/CMakeLists.txt#L17

I use CLion on macOS, but it should work the same in VSCode. It works from the command line with just cmake directly.