Unit CardKB is a fully functional QWERTY keyboard. If you want to achieve some complex keyboard input interactions, relying solely on the 3 buttons on the M5Core might be challenging. To solve this problem, Unit CardKB comes to the rescue.
Using Unit CardKB not only allows for full keyboard input but also supports various key combinations (Sym + Key, Shift + Key, Fn + Key) to output richer key values. This Unit communicates with M5Core through PORT A (I2C interface). The I2C address is 0x5F.
Specification | Parameter |
---|---|
Number of Keys | 50 |
RGB LED | x 1 |
Communication | I2C |
Net Weight | 17g |
Gross Weight | 18g |
Product Size | 88 x 54 x 5mm |
Package Size | 136 x 92 x 5mm |
1. Button Combination Instructions:
Press a single key, the keyboard will output the first key value (letter keys will output in lowercase). For example, pressing "Q" will output "q" (lowercase).
Sym+key, the keyboard will output the second key value. For example, after clicking "Sym", pressing "Q" will output "{". Double-click "Sym" to lock the function, and any subsequent key press will output the second key value. Double-click "Sym" again to unlock.
Shift+key, the keyboard will output the uppercase form of the letter. For example, after clicking "Shift", pressing "Q" will output "Q" (uppercase). Double-click "Shift" to lock the function, and any subsequent key press will output in uppercase. Double-click "Shift" again to unlock.
Fn+key (custom function key combination), the keyboard will output the third key value. You can customize the function corresponding to the pressed key.
HY2.0-4P | Black | Red | Yellow | White |
---|---|---|---|---|
PORT.A | GND | 5V | SDA | SCL |
/*--------------------------------------------------------------------------------------------------*/
| KEYBOARD REG | 0x5F
| ------------------------------------------------------------------------------------------------
| keyboard_value_reg[0] 0x5F | R | KEYBOARD VALUE
/*----------------------------------------------------------------------------------------------------
Easyloader | Download Link | Note |
---|---|---|
Unit CardKB example with M5Core | download | / |