Go Down

Topic: Leonardo Keyboard function to print numbers (Read 885 times) previous topic - next topic


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) ?

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131