Developer

LED Commands

The commands list related to the LED.

byte[0] Command Name 説明
0xE0 led Set LED state

0xE0 : led

Set the LED state (off, solid, flash and dim) and color intensity (red, green and blue).

byte [0] [1] [2] [3] [4] [5] [6] [7] [8]
value 0xE0

uint16_t identifier

uint8_t ledState uint8_t red uint8_t green uint8_t blue uint16_t crc16
description command task identifier see below red
0-255
green
0-255
blue
0-255
CRC16
error-detecting
typedef enum ledState =
{
    LED_STATE_OFF = 0, // LED off 
    LED_STATE_ON_SOLID = 1, // LED solid
    LED_STATE_ON_FLASH = 2, // LED flash 
    LED_STATE_ON_DIM = 3 // LED dim
}