Go Down

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

od1_fr

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!

Arduino
via Egeo 16
Torino, 10131
Italy