1
0
Fork 0

[Keyboard] Added RAMA WORKS M65-B, M65-BX, M10-C, M50-A (#9991)

* Added RAMA WORKS M65-B, M65-BX, M10-C, M50-A

* Review changes

* Review changes

* Review changes

* Increase layers to 10 for M10-C, M10-B
This commit is contained in:
Wilba 2020-08-18 16:44:35 +10:00 committed by GitHub
parent c59a81b792
commit 70acf36d16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 1595 additions and 31 deletions

View file

@ -37,6 +37,12 @@ typedef struct
uint8_t index;
} backlight_config_indicator;
#if defined(RGB_BACKLIGHT_M6_B)
#define RGB_BACKLIGHT_CUSTOM_COLORS_COUNT 6
#elif defined(RGB_BACKLIGHT_M10_C)
#define RGB_BACKLIGHT_CUSTOM_COLORS_COUNT 10
#endif
typedef struct
{
bool use_split_backspace:1; // |
@ -58,10 +64,10 @@ typedef struct
backlight_config_indicator layer_2_indicator; // 3 bytes
backlight_config_indicator layer_3_indicator; // 3 bytes
uint16_t alphas_mods[5]; // 10 bytes
#if defined(RGB_BACKLIGHT_M6_B)
HS custom_color[6]; // 12 bytes
#if defined(RGB_BACKLIGHT_M6_B) || defined(RGB_BACKLIGHT_M10_C)
HS custom_color[RGB_BACKLIGHT_CUSTOM_COLORS_COUNT]; // 12 or 20 bytes
#endif
} backlight_config; // = 31 bytes (M6-B = 43 bytes)
} backlight_config; // = 31 bytes (M6-B = 43 bytes, M10-C 51 bytes)
void backlight_config_load(void);
void backlight_config_save(void);