Optical, Color & ToF
Broadcom APDS-9960 digital twin
Optical sensor combining RGB ambient light, proximity sensing, and 4-way gesture detection.
VendorBroadcomOptical, Color & ToF
InterfaceI2C0x39 (fixed)
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 reference | Twin-factory vendor-driver oracle (0.1.0+policy.12) |
|---|---|
| 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 | accuracy/twin-factory-oracles-2026-11-19b.json (SHA-256 caa6e32e53c5) |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0x92 | ID | 0xAB | APDS-9960 device ID |
0x80 | ENABLE | 0x00 | Control bits for power, ALS, proximity, gesture engine |
0x94–0x9C | CDATAL..PDATA | 16-bit / 8-bit | Color channel counts (C/R/G/B) plus proximity output |
Attach with ct CLI
Shell - run firmware with APDS-9960
# Run compiled firmware with APDS-9960 attached on adafruit-qualia-esp32s3
ct run --json --board adafruit-qualia-esp32s3 --device apds9960 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/apds9960.xml tests/apds9960-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/apds9960-fault.suite.yaml
version: 1
board: adafruit-qualia-esp32s3
firmware: build/app.elf
tests:
- name: apds9960-i2c-nack-and-bad-id
faults:
- at_ms: 30
bus: I2C1
kind: nack
address: 0x39
count: 2
- at_ms: 150
part: apds9960
kind: register_override
register: 0x92
value: 0xFF
expect:
console_contains: "DRIVER_FAULT_DETECTED"
exit_code: 0