Palatis / Arduino-Lufa

LUFA (Lightweight USB For AVRs) on the Arduino!
MIT License
100 stars 26 forks source link

How to include other arduino libraries in a LUFA sketch? #25

Closed svilex closed 1 year ago

svilex commented 1 year ago

I'm trying to read an sdcard file within my lufa sketch but including the arduino \<SD> library will give compile errors when the LUFA board is selected. What should I do to use it as I would normally do? .

iFreilicht commented 1 year ago

Could you please post the exact compiler errors you're seeing? Normally other libraries work just fine with LUFA.

svilex commented 1 year ago

I don't have the exact errors now but it's about all kinds of undefined types if included in a .c file and about undefined Serial when included in the .ino, manually removing serial usage from the library fixed it.