My first post here. I have an Arduino Micro I purcahsed for its ability to present itself as a USB input device to a computer. I am trying to write a simple sketch for it to play around with it and I went to go import the .h and to my surprise I cannot find it. My IDE is set to the correct board type, I have tried both the latest version of the software and the beta, looked on this stie, looked on Github and Sorceforge.
WTF am I missing?? LOL. Forgive me but I am totally new to Arduino but not computers. I am sure I will be here racking up my post count with stupid questions you great gurus can help me with.
Well that would be the keyboard and mouse libraries specific to that board. Heck, I'm not even sure of the names of them. I suppose they would be named something like usbkeyboard.h ??
When I go to the import libary menu in the IDE it would seem that there is no keyboard or mouse libary.
Have you tried simply writing the code without trying to import a library? From the looks at this page, it appears as though the libraries are included with the core: http://arduino.cc/en/Reference/MouseKeyboard
... I went to go import the .h and to my surprise I cannot find it ...
What .h ? Try to be specific.
The examples that ship do not require any libraries so I'm not sure what you are searching for. eg.
void setup() {
// open the serial port:
Serial.begin(9600);
// initialize control over the keyboard:
Keyboard.begin();
}
void loop() {
// check for incoming serial data:
if (Serial.available() > 0) {
// read incoming serial data:
char inChar = Serial.read();
// Type the next ASCII value from what you received:
Keyboard.write(inChar+1);
}
}
Arrch:
Have you tried simply writing the code without trying to import a library? From the looks at this page, it appears as though the libraries are included with the core: http://arduino.cc/en/Reference/MouseKeyboard
So in other words the library is natively built into the board and you import nothing?