Pages: [1]   Go Down
Author Topic: Leonardo Keyboard function to print numbers  (Read 531 times)
0 Members and 1 Guest are viewing this topic.
Berlin, Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi folks,
I'm using an Arduino Leonardo to emulate a Keyboard. I'm on Mac OS 10.7 with a french AZERTY keyboard.
It works perfectly to print any letter, but when it comes to numbers, it prints the symbols associated to the number keys of my french keyboard. For instance it prints '&' when I ask Keyboard.print('1'), as well with Keyboard.print(''VK_NUMPAD1') or the ASCII Keyboard.write(49), or hexa, etc.
It prints a proper '1' when I combine this previous code with Keyboard.press('KEY_LEFT_SHIFT'), because it's the way I type number with a french keyboard, but i'd like to know if it's possible to use a specific keycode without modifier keys (as I'd do it with a keypad for instance) ?
Logged

Pages: [1]   Go Up
Jump to: