Closed rei-vilo closed 3 years ago
Release 0.21.0 works fine.
you need to explicitly add tinyusb header to the sketch since tinyusb is moved from core to libraries entirely.
#include "Adafruit_TinyUSB.h"
This is normally not needed when using most of other libraries such as wire, spi, bluefruit etc .. since they include the tinyusb header by default. This is a bit inconvenient but allow the tinyusb to ported to lost of platform such as rp2040
Thank you! It works now.
Would it be possible to migrate the #include "Adafruit_TinyUSB.h"
into Arduino.h to prevent this false error?
I would love to, but it is kind of complicated, here is my comment on rp2040 port See https://github.com/earlephilhower/arduino-pico/issues/167#issuecomment-848622174 . The include got its way into most of libraries used by nrf52
----- from above comment ---------- It won't work, somehow IDE will refuse to link to the link if you library header inside the Arduino.h. It will treat the library as part of the core somehow. Have tried it, maybe you have a better luck.
PS: to be precise, if the path to Tinyusb src is part of the includes, Arduino won’t try to link with the lib (consider it as part of core). Maybe there is a walkaround for this. Will give a try later on. For now, please treat it as SPI or Wire. You need to include it in sketch for using
Thank you for the explanations.
Describe the bug Adding Serial to the blinky example results in error
Set up (mandatory)
To Reproduce Steps to reproduce the behavior:
Screenshots If applicable, add screenshots to help explain your problem.
Code
Serial Log