MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / SetMode

Method SetMode

Controllers/IonicoController/IonicoController.cpp:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void 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
67void IonicoController::SetColors(int device, std::vector<RGBColor> array_colors, bool is_mode)
68{

Callers 1

DeviceUpdateModeMethod · 0.45

Calls 1

hid_send_feature_reportFunction · 0.85

Tested by

no test coverage detected