drv_kbd_cardkb
I2C keyboard driver for the M5Stack CardKB unit (ATmega-based). Simple single-byte read protocol.
Overview Fixed
| HAL Type | Input |
| Chip | CardKB (ATmega) |
| Interface | I2C |
| Description | Single-byte I2C read protocol at address 0x5F. Arrow key codes mapped to 0xB4-0xB7. |
Implementation
| Source | components/kernel_rs/src/drv_kbd_cardkb.rs (776 lines) |
| Wraps | None — single-byte I2C read at 0x5F |
| Tests | 16 unit tests |
Devices
Boards that use this driver:
| Device | Status |
|---|---|
| Cardputer | Fixed |
Configuration
Configured via board.json: I2C address (0x5F), pin_sda, pin_scl.
Known Issues
Fixed: I2C address corrected from 0x08 to 0x5F. Arrow key codes mapped to 0xB4-0xB7 per M5Stack documentation.