C:\Users\Dennis\Documents\Arduino\sketch_may22b\sketch_may22b.ino:4:18: warning: character constant too long for its type
Keyboard.println(‘Written by GeeDees Arduino’);
^
C:\Users\Dennis\Documents\Arduino\sketch_may22b\sketch_may22b.ino: In function ‘void setup()’:
sketch_may22b:4: error: ‘Keyboard’ not found. Does your sketch include the line ‘#include <Keyboard.h>’?
Keyboard.println(‘Written by GeeDees Arduino’);
^
exit status 1
‘Keyboard’ not found. Does your sketch include the line ‘#include <Keyboard.h>’?
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.
Dennis - read how to use the forum to post questions... we lack all the context to be able to provide meaningful guidance and would have to run into hypothesis of what your code is or the libraries you use etc....
C:\Users\Dennis\Documents\Arduino\sketch_may22b\sketch_may22b.ino:4:18: warning: character constant too long for its type
Keyboard.println('Written by GeeDees Arduino');
^
Use double-quotes around string constants. Single quotes go around character constants which can only hold 1 or 2 characters.
GeeDeexd:
C:\Users\Dennis\Documents\Arduino\sketch_may22b\sketch_may22b.ino: In function ‘void setup()’:
sketch_may22b:4: error: ‘Keyboard’ not found. Does your sketch include the line ‘#include <Keyboard.h>’?
Keyboard.println(‘Written by GeeDees Arduino’);
^
exit status 1
‘Keyboard’ not found. Does your sketch include the line ‘#include <Keyboard.h>’?
The Arduino Uno board is not compatible with the Keyboard library, which is why you got this error.
From Keyboard - Arduino Reference
These core libraries allow the 32u4 and SAMD based boards (Leonardo, Esplora, Zero, Due and MKR Family) to appear as a native Mouse and/or Keyboard to a connected computer.
Another popular board with native USB is the Pro Micro (or Micro).
Build options changed, rebuilding all
Sketch uses 5192 bytes (18%) of program storage space. Maximum is 28672 bytes.
Global variables use 254 bytes (9%) of dynamic memory, leaving 2306 bytes for local variables. Maximum is 2560 bytes.
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = "þ"; type = ¸
Software Version = h.