A few months ago, I made a macro keyboard using an Itsybitsy 32u4 5V. It uses the Arduino (USB) Keyboard library and works well. Now, I am upgrading the capabilities of the macro keyboard and decided to use an Itsybitsy RP2040 to provide more processing power. What I've discovered, though, is a problem with the Arduino (USB) Keyboard library. Specifically, the keyboard modifiers do not appear to register properly. Here are a couple of example code snippets.
This first snippet is the Linux Unicode entry sequence:
Code: Select all
Keyboard.press(KEY_LEFT_SHIFT);
Keyboard.press(KEY_LEFT_CTRL);
Keyboard.write('u');
Keyboard.write(unicodeChars[0]);
Keyboard.write(unicodeChars[1]);
Keyboard.write(unicodeChars[2]);
Keyboard.write(unicodeChars[3]);
Keyboard.releaseAll();
Code: Select all
Keyboard.write(unicodeChars[0]);
Keyboard.write(unicodeChars[1]);
Keyboard.write(unicodeChars[2]);
Keyboard.write(unicodeChars[3]);
Keyboard.press(KEY_LEFT_ALT);
Keyboard.press('x');
Keyboard.releaseAll();
I've been looking through the Arduino (USB) Keyboard sources and the (USB) Keyboard support code in the Philhower RP2040 Arduino support GitHub, but I have yet to find anything pointing to a solution. Any help would be appreciated!