link icon indicating copy to clipboard operation
link copied to clipboard

Pure ESP32 PlatformIO/Arduino lib?

Open DatanoiseTV opened this issue 4 years ago • 3 comments

It's a big pain if trying to get the ESP32 variant working on ESP32-Arduino with ASIO and ESP-IDF includes. After including a lot of paths, I couldn't get it working.

Did someone get it to work?

DatanoiseTV avatar Oct 04 '20 18:10 DatanoiseTV

The main issue is the non-standard way the the Arduino library system works. As you cannot add include paths to an Arduino project, header-only libraries won't work. I've tried several times, and my conclusion is that the only way it could work would be to create a script that collects all the header files of Link and bundles them into one big header file that can be placed in the root folder of a potential Link Arduino library. Then it can simply be included in the top of an .ino file.

mathiasbredholt avatar Nov 11 '21 16:11 mathiasbredholt

@mathiasbredholt maybe this is worth a look? https://github.com/JamesBoer/Heady

DatanoiseTV avatar Nov 11 '21 22:11 DatanoiseTV

@DatanoiseTV looks perfect, I'll give it a go :)

mathiasbredholt avatar Nov 12 '21 09:11 mathiasbredholt

Hello, did anybody made some futher steps in this direction so far? I don't really understand these head-only libraries and couldn't get the code working on my esp32, even in the idf framework... thank you :)

kokospalme avatar Oct 09 '23 09:10 kokospalme

@kokospalme check my comment here https://github.com/Ableton/link/pull/68#issuecomment-1752451401 For a ESP-IDF component checkout link-esp

mathiasbredholt avatar Oct 09 '23 10:10 mathiasbredholt