UnaClocker
Active member
I'm getting errors trying to use "usb_keyboard_press" as explained here: http://www.pjrc.com/teensy/usb_keyboard.html
It's Arduino 1.03, latest Teensyduino applied, Teensy 2.0, on the latest Mac OSX
The compiler window lists complaints:
"error: 'usb_keyboard_press' was not declared in this scope"
Why not? It's in the documentation, was it removed? Renamed?
Here's code that won't work:
It's Arduino 1.03, latest Teensyduino applied, Teensy 2.0, on the latest Mac OSX
The compiler window lists complaints:
"error: 'usb_keyboard_press' was not declared in this scope"
Why not? It's in the documentation, was it removed? Renamed?
Here's code that won't work:
Code:
#include <usb_keyboard.h>
void setup() {
pinMode(11, OUTPUT);
}
void loop() {
delay(5000);
digitalWrite(11, HIGH);
usb_keyboard_press(KEY_D);
delay(1000);
digitalWrite(11, LOW);
}