SerialCommander provides a full-featured command-line interface for AutoLight V3 with multi-level access control, WiFi management, LED control, PCF debugging, and system configuration.
typedef enum { SERIAL_DISABLED = 0, // No access SERIAL_READ_ONLY = 1, // View status only SERIAL_SAFE_CONTROL = 2, // LED and sequence control SERIAL_FULL_ACCESS = 3 // All commands including WiFi} SerialMode;
led on # Turn all LEDs onled off # Turn all LEDs offled test <channel> # Test specific channelled status # Show all channel statesled next # Next sequence modeled prev # Previous sequence mode
sequence set <mode> # Set sequence (0-15)sequence map enable # Enable sequence filteringsequence map set 2,5,7,10 # Set active sequencessequence map show # Display current mappingsequence delay <ms> # Set timing delay (30-300ms)
pcf scan # Scan I2C bus for devicespcf test <address> # Test PCF at hex address (e.g., 0x27)pcf status # Show all PCF statespcf reset <address> # Reset specific PCFpcf write <address> <data> # Write byte to PCFpcf read <address> # Read byte from PCF
> led statusChannel 0: OFFChannel 1: OFFChannel 2: OFF...Total: 12 channels> led test 5Testing channel 5...ON... OFF... ON... OFFTest complete> sequence set 7Sequence changed to mode 7> sequence delay 100Delay set to 100ms
> sequence map enableSequence mapping enabled> sequence map set 2,5,7,10Active sequences: 2, 5, 7, 10> sequence map showSequence Mapping: API Index 0 -> Sequence 2 API Index 1 -> Sequence 5 API Index 2 -> Sequence 7 API Index 3 -> Sequence 10