mattairtech / ArduinoCore-samd

This is a fork from arduino/ArduinoCore-samd on GitHub. This will be used to maintain Arduino support for SAM D|L|C (M0+ and M4F) boards including the MattairTech Xeno Mini and the MT-D21E (see https://www.mattairtech.com/). It adds support for new devices like the D51, L21, C21, and D11. It also adds new clock sources, like a high speed crystal or internal oscillator.
103 stars 43 forks source link

Error with example keyboard HID library #18

Open sabas1080 opened 6 years ago

sabas1080 commented 6 years ago

Hi @mattairtech

I am trying to use the keyboard example included in arduino, but when wanting to compile in SAMD11, I get the following error

file included from /Applications/Arduino.app/Contents/Java/libraries/Keyboard/src/Keyboard.h:25:0,
                 from /Applications/Arduino.app/Contents/Java/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino:32:
/Users/xxx/Library/Arduino15/packages/MattairTech_Arduino/hardware/samd/1.6.16/libraries/HID/HID.h:27:2: error: #error Please select CDC_HID, HID_ONLY, or WITH_CDC in the Tools->USB menu.
 #error Please select CDC_HID, HID_ONLY, or WITH_CDC in the Tools->USB menu.

I have selected in the USB menu: HID Only

captura de pantalla 2018-04-20 a la s 14 16 45

Thanks

sabas1080 commented 6 years ago

In beta version compiled fine

mattairtech commented 6 years ago

This was fixed in 1.6.18-beta-b0. I'll leave this issue here until the release version includes the fix (1.6.18). Note that recent beta version are now included in the main release json. Note also that only one json from MattairTech at a time can be installed, so you might want to switch to the main json.