Go Down

Topic: keyboard.h (Read 10697 times) previous topic - next topic

BrendanQ

I'm trying to use the keyboard library however it seems I don't have the library. I just redownloaded the Arduino IDE, but it doesn't seem to come with the keyboard library. I found someone else's github that had it and downloaded that and included it, however I also don't have the HID.h library that the keyboard.h file includes. Any idea?

CrossRoads

This keypad.h library? It's the one I use for 3x4, 4x4 keypads.
http://playground.arduino.cc/Code/Keypad
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

mstanley

Which Arduino are you using?  The Keyboard reference page says:
Quote
These core libraries allow a 32u4 based boards or Due and Zero board to appear as a native Mouse and/or Keyboard to a connected computer.
By core libraries they are talking about the keyboard/mouse core libraries.  So if you don't have one of the boards mentioned above those core libraries are not available.

vaclav

#3
Jul 17, 2015, 05:09 am Last Edit: Jul 17, 2015, 05:12 am by Vaclav
I'm trying to use the keyboard library however it seems I don't have the library. I just redownloaded the Arduino IDE, but it doesn't seem to come with the keyboard library. I found someone else's github that had it and downloaded that and included it, however I also don't have the HID.h library that the keyboard.h file includes. Any idea?
I'm trying to use the keyboard library however it seems I don't have the library. I just redownloaded the Arduino IDE, but it doesn't seem to come with the keyboard library. I found someone else's github that had it and downloaded that and included it, however I also don't have the HID.h library that the keyboard.h file includes. Any idea?
Terminology gentlemen - keypad and keyboard are different devices.
Recently  a long discussion about keyboard turned out to be about musical instrument!
And yes - there is a "native USB port" keyboard library , but ONLY for Due and some other offshoot of Arduino. But there are USB shields to run on Uno I presume.
And on 1.6.6. IDE you have to use Libray Manager to install the USB Keyboard and Mouse libraries. .
It sort of works but does not use interrupts - runs in loop


Go Up