How it works?
The device is recognized by the host PC as a USB-HID keyboard.
Depending on the state of the toggle switch when the push switch is pressed, it sends special commands and the character is entered on the PC.
I use Circuit Python on Raspberry Pi Pico, which is easy to modify code for, as different operating systems and software use different methods for unicode codepoint input.
How to typing "😀"
- set toggle switches to 01 11111010 00000000 (0x1F600)
- press return key
- (For windows + win compose) send "Alt", "U", "1F600" as hid keyboard
How to typing "🏴" (flag of England) with variation selector
"🏴" is 0x1F3F4 0xE0067 0xE0062 0xE0065 0xE006E 0xE0067 0xE007F
- set 0x1F3F4 and press return
- set 0x0062 and hold return (send 0xE0062)