Picomite Keymap values?

Does anyone know whats sent to the Picos serial port when the F2 and F4 keys are pressed? Iv worked out the ESC key is 0xE01B or at least thats what seems to work, but I dont know the Hex for the F keys? Iv tried searching online and none of what I`v tried seems to work and just comes up as Invalid.

Codes are defined in the STM firmware: https://github.com/cuu/picocalc_keyboard/blob/master/keyboard.h

Hmm.. I tried that and it didn`t work 0X82 and 0x84 just kept giving me a Diamond shape with a β€œ?” inside it.
But.. I did find the winning sequence thanks to an AI friend, F2 β†’ 1B 4F 51 and F4 β†’ 1B 4F 53, ESC is just 1B and Ctrl-C is 03
Just in case anyone else comes across this same issue in future. :smiley:

I think you are talking not about keyboard codes, but about symbol codes. It depends on the particular font. Ie β€œDiamond shape with a β€œ?” inside it.” means no font symbol available for the code.

You could be right!
What Im doing is using a USB Serial Terminal app for Android to talk to a tiny thumb drive sized RP2040 plugged into my phones USB port so I can program Anywhere. I tried using Hackers Keyboard because it has all the Keys found on a PC keyboard, but the F Keys and few others simply just dont work, they do nothing at all, so I thought Id assign Macros in the terminal instead to get around this, and its working now :smiley:

Those are definitely VT100 escape sequences.

1 Like