arduino-libraries/Keyboard

are imposible print a "@"

ArielBaravalle opened this issue · 7 comments

Hello
Please, confirm how this is possible , I try different ways with bad result .
thanks and regards

Sorry, I resolve now :)

    Keyboard.press(KEY_LEFT_CTRL);         // send Hex value for RETURN key
    Keyboard.press(KEY_LEFT_ALT);         // send Hex value for RETURN key
    delay(500);
    Keyboard.write(50); 
    Keyboard.releaseAll();

if u want yo print '@' symbol just do

Keyboard.press(KEY_LEFT_SHIFT);
Keyboard.press('2');
delay(100);
Keyboard.releaseAll();

I have the same problem and I am using a German Keyboard Layout. Normally we press AltGreat and "q", but there is no AltGreat Modifier implemented. The Method using CTRL + ALT + "q" is only working on windows, but I am under linux. Any suggestions?

You can use english keyboard @ArielBaravalle

@mo-pyy I believe that Alt Graph (Alt Gr) is exactly the same as Right Alt.

So to enter an @ symbol on a German keyboard, use the following code:

Keyboard.press(KEY_RIGHT_ALT);
Keyboard.press("q");
delay(100);
Keyboard.releaseAll();

This issue has been fixed. Since version 1.0.3, this library supports the German keyboard layout. Initialize it like this:

Keyboard.begin(KeyboardLayout_de_DE);

Then you can type @ with:

Keyboard.write('@');

Closing as resolved by #53
Thanks @edgar-bonet!