update
This commit is contained in:
@@ -79,11 +79,11 @@ led_config_t g_led_config = {
|
||||
{ 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, NO_LED, 41 },
|
||||
{ 62, 61, 60, NO_LED, NO_LED, 59, NO_LED, NO_LED, 58, 57, 56, 55, NO_LED, 54 }
|
||||
}, {
|
||||
{ 216, 0 }, { 192, 0 }, { 176, 0 }, { 160, 0 }, { 144, 0 }, { 128, 0 }, { 112, 0 }, { 96, 0 }, { 80, 0 }, { 64, 0 }, { 48, 0 }, { 32, 0 }, { 16, 0 }, { 0, 0 },
|
||||
{ 220, 16 }, { 200, 16 }, { 184, 16 }, { 168, 16 }, { 152, 16 }, { 136, 16 }, { 120, 16 }, { 104, 16 }, { 88, 16 }, { 72, 16 }, { 56, 16 }, { 40, 16 }, { 24, 16 }, { 4, 16 },
|
||||
{ 224, 0 }, { 192, 0 }, { 176, 0 }, { 160, 0 }, { 144, 0 }, { 128, 0 }, { 112, 0 }, { 96, 0 }, { 80, 0 }, { 64, 0 }, { 48, 0 }, { 32, 0 }, { 16, 0 }, { 0, 0 },
|
||||
{ 4, 16 }, { 24, 16 }, { 40, 16 }, { 56, 16 }, { 72, 16 }, { 88, 16 }, { 104, 16 }, { 120, 16 }, { 136, 16 }, { 152, 16 }, { 168, 16 }, { 184, 16 }, { 200, 16 }, { 220, 16 },
|
||||
{ 214, 32 }, { 188, 32 }, { 172, 32 }, { 156, 32 }, { 140, 32 }, { 124, 32 }, { 108, 32 }, { 92, 32 }, { 76, 32 }, { 60, 32 }, { 44, 32 }, { 28, 32 }, { 6, 32 },
|
||||
{ 224, 48 }, { 208, 48 }, { 186, 48 }, { 164, 48 }, { 148, 48 }, { 132, 48 }, { 116, 48 }, { 100, 48 }, { 84, 48 }, { 68, 48 }, { 52, 48 }, { 36, 48 }, { 9, 48 },
|
||||
{ 224, 64 }, { 208, 64 }, { 192, 64 }, { 176, 64 }, { 160, 64 }, { 102, 64 }, { 42, 64 }, { 22, 64 }, { 2, 64 }
|
||||
{ 9, 48 }, { 36, 48 }, { 52, 48 }, { 68, 48 }, { 84, 48 }, { 100, 48 }, { 116, 48 }, { 132, 48 }, { 148, 48 }, { 164, 48 }, { 186, 48 }, { 208, 48 }, { 224, 48 },
|
||||
{ 2, 64 }, { 22, 64 }, { 42, 64 }, { 102, 64 }, { 160, 64 }, { 176, 64 }, { 192, 64 }, { 208, 64 }, { 224, 64 }
|
||||
}, {
|
||||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
|
||||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
|
||||
|
||||
+4
-3
@@ -354,11 +354,12 @@ void openrgb_direct_mode_set_single_led(uint8_t *data) {
|
||||
raw_hid_buffer[RAW_EPSIZE - 2] = OPENRGB_SUCCESS;
|
||||
}
|
||||
void openrgb_direct_mode_set_leds(uint8_t *data) {
|
||||
const uint8_t number_leds = data[1];
|
||||
const uint8_t first_led = data[1];
|
||||
const uint8_t number_leds = data[2];
|
||||
|
||||
for (uint8_t i = 0; i < number_leds; i++) {
|
||||
const uint8_t data_idx = i * 4;
|
||||
const uint8_t color_idx = data[data_idx + 2];
|
||||
const uint8_t color_idx = first_led + i;
|
||||
const uint8_t data_idx = i * 3;
|
||||
|
||||
g_openrgb_direct_mode_colors[color_idx].r = data[data_idx + 3];
|
||||
g_openrgb_direct_mode_colors[color_idx].g = data[data_idx + 4];
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
|
||||
// This is changed only when the command IDs change,
|
||||
// so OpenRGB can detect compatible firmware.
|
||||
#define OPENRGB_PROTOCOL_VERSION 0xD
|
||||
#define OPENRGB_PROTOCOL_VERSION 0xC
|
||||
|
||||
#define RAW_EPSIZE 64
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ __attribute__((weak)) RGB rgb_matrix_hsv_to_rgb(HSV hsv) {
|
||||
# ifdef OPENRGB_ENABLE
|
||||
# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_OPENRGB_DIRECT
|
||||
# else
|
||||
# ifdef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
# ifndef DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
# else
|
||||
// fallback to solid colors if RGB_MATRIX_CYCLE_LEFT_RIGHT is disabled in userspace
|
||||
|
||||
Reference in New Issue
Block a user