API Reference

Adafruit_CH9328

CircuitPython driver for the CH9328 UART to HID keyboard breakout

  • Author(s): Liz Clark

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_ch9328.ch9328.Adafruit_CH9328(uart: busio.UART)

Adafruit CH9328 UART to HID keyboard driver

Constructor for the Adafruit_CH9328 class.

send_key_press(keys: List[int], modifier: int = 0) None

Sends a key press command to the CH9328 device.

Parameters:
  • keys (list) – List of up to 6 key codes to be pressed simultaneously.

  • modifier (int, optional) – Modifier key code (e.g., Shift, Ctrl)

send_string(string: str) None

Types out a string by sending key press commands for each character, handling upper/lower case and punctuation.

Parameters:

string (str) – The string to be typed out.

Keymap

HID Keymap for the CH9328 UART to HID keyboard breakout

  • Author(s): Liz Clark

class adafruit_ch9328.ch9328_keymap.Keymap

Keymap for the Adafruit CH9328 UART to HID keyboard driver