Hi everyone can anyone tell me why this sketch is giving me a problem saying:
'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
sketch_jan06a.ino (504 Bytes)
Hi everyone can anyone tell me why this sketch is giving me a problem saying:
'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
sketch_jan06a.ino (504 Bytes)
This library should be used with a Leonardo or Due board : is it the case for you?
Oh no I'm using a Mega 2560.
Thank you!
lesept:
This library should be used with a Leonardo or Due board : is it the case for you?
By Due do you means Duemilanove from the board menu?
It works if I choose the Leonardo, I get the OP's error if I use Duemilanove, I see no Due board.
In file included from /Users/robert/Documents/myArduino/macro18X/macro18X.ino:1:0:
/Users/robert/Documents/portable/portableARD18X/Arduino.app/Contents/Java/libraries/Keyboard/src/Keyboard.h:29:2: warning: #warning "Using legacy HID core (non pluggable)" [-Wcpp]
#warning "Using legacy HID core (non pluggable)"
I'll google yes, of course, but what means this "non pluggable". I am aiming ultimately to get the USB keyboard behavior out of an Arduino I actually possess (UNO, pro mini), I am surprised that such an easy thing from a conceptual point of view has me coming near DFU programming &c.
BTW I used my portable 1.8 Arduino, the same results with my regularly installed 1.6.X tried and true and not so very old.
alto777
alto777:
By Due do you means Duemilanove from the board menu?
No. The Due and the Duemilanove are two completely different boards. This is the Due:
You won't see that board in the Tools > Board menu until after you've installed Arduino SAM Boards via Boards Manager.
alto777:
I am aiming ultimately to get the USB keyboard behavior out of an Arduino I actually possess (UNO, pro mini), I am surprised that such an easy thing from a conceptual point of view has me coming near DFU programming &c.
It doesn't seem conceptually easy at all to me. The easy path is to use a board with native USB capabilities (Leonardo, Micro, Pro Micro, Due, Zero, MKR, etc.)
pert:
…
It doesn't seem conceptually easy at all to me. The easy path is to use a board with native USB capabilities (Leonardo, Micro, Pro Micro, Due, Zero, MKR, etc.)
The less you know, the simpler things seem like they should be. ![]()
a7
It is possible if you have an Uno with the ATmega16U2 USB chip on it. I have never tried working with that since I have a bunch of Pro Micros I use whenever I need that sort of functionality. I have seen some people here on the forum struggling with it though. I know there are some pretty well documented resources intended to make it easier to do.