board/slider-cmd.h: Add separate Diva LED cmd

The Chunithm slider has sixteen cells and fifteen (I think?)
vertical lines splitting the cells. Diva does not have these lines,
so presumably the LED data format is different. Need to analyze
this further.
This commit is contained in:
Tau 2019-02-25 16:12:38 -05:00
parent 05ccf363d9
commit bbe085b73d
2 changed files with 3 additions and 2 deletions

View File

@ -4,9 +4,10 @@
enum {
SLIDER_CMD_AUTO_SCAN = 0x01,
SLIDER_CMD_SET_LED = 0x02,
SLIDER_CMD_SET_LED_CHUNI = 0x02,
SLIDER_CMD_AUTO_SCAN_START = 0x03,
SLIDER_CMD_AUTO_SCAN_STOP = 0x04,
SLIDER_CMD_SET_LED_DIVA = 0x9,
SLIDER_CMD_RESET = 0x10,
SLIDER_CMD_GET_BOARD_INFO = 0xF0,
};

View File

@ -123,7 +123,7 @@ static HRESULT slider_req_dispatch(const union slider_req_any *req)
case SLIDER_CMD_GET_BOARD_INFO:
return slider_req_get_board_info();
case SLIDER_CMD_SET_LED:
case SLIDER_CMD_SET_LED_CHUNI:
return slider_req_set_led(&req->set_led);
case SLIDER_CMD_AUTO_SCAN_START: