I try to switch from Arduino IDE to Visual Studio Code using PlatformIO extension.
All my Arduino projects compile except one !
The one that does not compile is a small project with the Trinket from Adafruit (= ATiny85 under the hood).
The error I get has to do with the particular library I intend to use called “TrinketKeyboard”.
(The library shall not be confused with the TrinketKeyboar for Trinket-PRO devices !!).
Again, on the Arduino-IDE everything works fine. I installed the library on the Arduino IDE by importing a .zip-file.
The .zip-file import option obviously does not exist on the PlatformIO. There, I simply copy/paste the very same library into the lib-folder of my workspace. (like I did for all the other perfectly fine running PIO projects…).
However, the TrinketKeyboard Library does not work on PlatformIO and I am working on it since 4 hours. Now I give up unless somebody has a brillant idea
The error message says:
avr-as: unrecognized option `-x’
*** [.pioenvs/trinket5/lib269/TrinketKeyboard/usbdrv/usbdrvasm.asm.o] Error 1