Hello everybody.
I've installed Teensyduino, Set "Usb type" = keyboard and "Keyboard layout": Italian (but I tried all the layouts).
When sending control characters (KEY_DELETE, KEY_UP_ARROW, KEY_DOWN_ARROW, KEY_BACKSPACE, etc.), these do not works.
eg. sending "KEY_DELETE" I retrieve an 'L' character.
The same Sketch on Arduino Leonardo works fine.
What could be the problem ?
Thanks so much
Code example:
I've installed Teensyduino, Set "Usb type" = keyboard and "Keyboard layout": Italian (but I tried all the layouts).
When sending control characters (KEY_DELETE, KEY_UP_ARROW, KEY_DOWN_ARROW, KEY_BACKSPACE, etc.), these do not works.
eg. sending "KEY_DELETE" I retrieve an 'L' character.
The same Sketch on Arduino Leonardo works fine.
What could be the problem ?
Thanks so much
Code example:
Code:
#include "Keyboard.h"
char cancKey = KEY_DELETE;
void setup() {
// open the serial port:
Serial.begin(9600);
// initialize control over the keyboard:
Keyboard.begin();
}
void loop() {
for (int i = 0; i <= 5; i++) {
Keyboard.press(cancKey);//KEY_DELETE 0xD4
Keyboard.releaseAll();
delay (500);
}
while (true){};
}
Last edited by a moderator: