Display, PWM & Haptics

Holtek HT16K33 digital twin

16x8 LED matrix driver and 13x3 keyscan controller over I2C.

standing: provisionalI2C0x70–0x77 (default 0x70)
VendorHoltekDisplay, PWM & Haptics
InterfaceI2C0x70–0x77 (default 0x70)
Record Status2026-11-19rev c3f5f9950 (clean tree)

Driver oracle & capability record

Part of the 27-part, 44-case twin-factory oracle suite (44/44 passed, generator 0.1.0+policy.12).

Driver referenceTwin-factory vendor-driver oracle (0.1.0+policy.12)
Evidence standingprovisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples).
Published recordaccuracy/twin-factory-oracles-2026-11-19b.json (SHA-256 caa6e32e53c5)

Key registers & reset values

Address / FieldRegisterReset / ExpectedPurpose
0x21SYSTEM_SETUPCommandEnables internal system oscillator
0x81DISPLAY_SETUPCommandDisplay ON and blink rate control
0x00–0x0FDISPLAY_RAM16 bytes128-bit LED pixel framebuffer

Attach with ct CLI

Shell - run firmware with HT16K33
# Run compiled firmware with HT16K33 attached on adafruit-qualia-esp32s3
ct run --json --board adafruit-qualia-esp32s3 --device ht16k33 build/app.elf

# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/ht16k33.xml tests/ht16k33-fault.suite.yaml

Fault-injection test snippet (suite.yaml)

tests/ht16k33-fault.suite.yaml
version: 1
board: adafruit-qualia-esp32s3
firmware: build/app.elf
tests:
  - name: ht16k33-i2c-nack-and-bad-id
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x70
        count: 2
      - at_ms: 150
        part: ht16k33
        kind: frozen_reading
    expect:
      console_contains: "DRIVER_FAULT_DETECTED"
      exit_code: 0

Compatible board twins

More in Display, PWM & Haptics