| 52 | } |
| 53 | |
| 54 | void IonicoController::SetMode(uint8_t mode_value, uint8_t brightness, uint8_t speed) |
| 55 | { |
| 56 | uint8_t usb_buf[IONICO_REPORT_SIZE]; |
| 57 | memset(usb_buf, 0x00, IONICO_REPORT_SIZE); |
| 58 | usb_buf[1] = 0x08; |
| 59 | usb_buf[2] = 0x02; |
| 60 | usb_buf[3] = mode_value; |
| 61 | usb_buf[4] = speed; |
| 62 | usb_buf[5] = brightness; |
| 63 | usb_buf[6] = 0x08; |
| 64 | hid_send_feature_report(dev, usb_buf, IONICO_REPORT_SIZE); |
| 65 | } |
| 66 | |
| 67 | void IonicoController::SetColors(int device, std::vector<RGBColor> array_colors, bool is_mode) |
| 68 | { |
no test coverage detected