LEDOverride or restore a status LED

LED forces a chip's green LED to a pattern or returns it to auto status display. Opcode 0x09.

LED 0x09 · payload 3 bytes

Fire-and-forget

PAYLOAD
OffsetFieldTypeNotes
0targetu8which chip's LED (see below)
1modeu8drive mode (see below)
2levelu8brightness 0-255; used by solid and blink, ignored for off and auto
TargetValueLED
device0Device chip LED.
host1Host chip LED, relayed over the inter-chip link.
both2Both LEDs.
ModeValueEffect
auto0Box status display (see below).
off1LED dark.
solid2Lit steadily at level brightness.
blink3Blinks at level brightness.
STATUS DISPLAY

In auto (the default), each chip's LED shows that chip's state.

Device chip: solid with link, mouse, and clone all up. Slow blink with the link up but the mouse or clone missing. Off with no link.

Host chip: solid while the mouse streams, off otherwise.

EFFECT

An override holds until auto, control-PC silence (the same ~1 s timeout that clears injection), RESET, or inter-chip link loss.

Invisible to the game PC: a host or both override travels only over the inter-chip link. Library binding: led.

EXAMPLE

Both LEDs to blink at level = 200 (0xC8):

A5SOF
09TYPE
00SEQ
03 00LEN
02target
03mode
C8level
lo hiCRC16