Hi,
I've used PlatformIO without issues for several Teensy projects already, but this time I have an issue configuring a basic project using the Teensy Audio library.
(Note that the issue is not my code, it works uploaded from the Arduino IDE.)
The AudioOutputUSB class I'm trying to use is said to be undefined and I can see in "usb_audio.h" that the AUDIO_INTERFACE macro is indeed not defined, explaining the problem.
I thought adding the build flag USB_AUDIO was supposed to define this flag, but it does not. I've also tried other flags (commented out below) that come up in answers I found here and there, but without success. Here is the platformio.in file:
For the record, I've reported it here as well: https://community.platformio.org/t/...endpoint-type-with-solution/895/6?u=donlencho
Thanks!
I've used PlatformIO without issues for several Teensy projects already, but this time I have an issue configuring a basic project using the Teensy Audio library.
(Note that the issue is not my code, it works uploaded from the Arduino IDE.)
The AudioOutputUSB class I'm trying to use is said to be undefined and I can see in "usb_audio.h" that the AUDIO_INTERFACE macro is indeed not defined, explaining the problem.
I thought adding the build flag USB_AUDIO was supposed to define this flag, but it does not. I've also tried other flags (commented out below) that come up in answers I found here and there, but without success. Here is the platformio.in file:
Anybody has experience with this? It might very well be a PlatformIO bug or misconfiguration, but maybe someone knows a trick.[env:teensy40]
framework = arduino
platform = teensy
upload_protocol = teensy-cli
board = teensy40
build_flags =
; -DUSB_INTERFACE
; -DUSB_SERIAL
-DUSB_AUDIO
lib_deps = paulstoffregen/Audio @ ^1.3
For the record, I've reported it here as well: https://community.platformio.org/t/...endpoint-type-with-solution/895/6?u=donlencho
Thanks!