Display, PWM & Haptics
Sitronix ST7789 digital twin
240x320 RGB565/RGB666 color TFT LCD controller with SPI window addressing and RDDID.
VendorSitronixDisplay, PWM & Haptics
InterfaceSPI + D/CX, RESX4-wire SPI Mode 0/3 (up to 62.5 MHz)
Record StatusCatalog profileDatasheet / behavioral twin
Driver oracle & capability record
Implemented as a built-in display behavioral profile in ct-twin-gen (DisplayDefinition::st7789) with 240x320 pixel RAM window tracking.
| Driver reference | CircuitTwin DisplayDefinition::st7789 / LVGL / Zephyr st7789v |
|---|---|
| Evidence standing | provisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples). |
| Published record | Generate or inspect locally via ct twin generate (see /docs/twin-generation). |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0x04 | RDDID | 0x85 0x85 0x52 | Reads manufacturer, driver version and module ID |
0x11 / 0x29 | SLPOUT / DISPON | Sleep on reset | Exits sleep mode and turns TFT output on |
0x3A | COLMOD | 0x55 (RGB565) | Sets 16-bit RGB565 or 18-bit RGB666 pixel format |
0x2A / 0x2B / 0x2C | CASET / RASET / RAMWR | Window stream | Sets column/row window and streams pixel bytes via DMA |
Attach with ct CLI
Shell - run firmware with ST7789
# Run compiled firmware with ST7789 attached on esp32s3-devkitc
ct run --json --board esp32s3-devkitc --device st7789 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/st7789.xml tests/st7789-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/st7789-fault.suite.yaml
version: 1
board: esp32s3-devkitc
firmware: build/app.elf
tests:
- name: st7789-spi-disconnect-and-fault
faults:
- at_ms: 40
part: st7789
kind: bus_disconnect
duration_ms: 25
expect:
console_contains: "SPI_FAULT_HANDLED"
exit_code: 0