Open sege5641 opened 6 years ago
I'm having the exact same error. I'm using Win10 and I did unzipped all the libraries files. I just tried to verify the example given and I received this error.
@sege5641 @sangar-happy - Did either of you figure this out?
I did.
Download from mine https://github.com/sege5641/Adafruit-Trinket-USB
@sege5641 - Thank you. I did pretty much the same things. For anyone else:
Add this before the #define __SFR_OFFSET 0
(line 18)
#undef __SFR_OFFSET
Line 73 - change it to this:
#if 0x41 < 0x40
Thanks tjcim, that helped !!
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
d:\users\user\Documents\Arduino\libraries\TrinketKeyboard\usbconfig.h:392:33: error: operator '*' has no left operand
define USB_INTR_PENDING GIFR
d:\users\user\Documents\Arduino\libraries\TrinketKeyboard\usbdrv/usbdrvasm.S:73:5: note: in expansion of macro 'USB_INTR_PENDING'
if USB_INTR_PENDING < 0x40 / This is an I/O address, use in and out /
exit status 1 Error compiling for board Adafruit Trinket (ATtiny85 @ 8MHz).