mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-01 06:19:16 +02:00
stash more lighting
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"groups": {
|
||||
"reactive": {}
|
||||
},
|
||||
"effects": {
|
||||
"0x01": {
|
||||
"key": "SOLID"
|
||||
},
|
||||
"0x02": {
|
||||
"key": "ALPHAS_MODS"
|
||||
},
|
||||
"0x03": {
|
||||
"key": "BREATHING"
|
||||
},
|
||||
"0x04": {
|
||||
"key": "BAND"
|
||||
},
|
||||
"0x05": {
|
||||
"key": "BAND_PINWHEEL"
|
||||
},
|
||||
"0x06": {
|
||||
"key": "BAND_SPIRAL"
|
||||
},
|
||||
"0x07": {
|
||||
"key": "CYCLE_LEFT_RIGHT"
|
||||
},
|
||||
"0x08": {
|
||||
"key": "CYCLE_UP_DOWN"
|
||||
},
|
||||
"0x09": {
|
||||
"key": "CYCLE_OUT_IN"
|
||||
},
|
||||
"0x0A": {
|
||||
"key": "DUAL_BEACON"
|
||||
},
|
||||
"0x0B": {
|
||||
"key": "WAVE_LEFT_RIGHT"
|
||||
},
|
||||
"0x0C": {
|
||||
"key": "WAVE_UP_DOWN"
|
||||
},
|
||||
|
||||
"0x0D": {
|
||||
"key": "SOLID_REACTIVE_SIMPLE",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x0E": {
|
||||
"key": "SOLID_REACTIVE_WIDE",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x0F": {
|
||||
"key": "SOLID_REACTIVE_MULTIWIDE",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x10": {
|
||||
"key": "SOLID_REACTIVE_CROSS",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x11": {
|
||||
"key": "SOLID_REACTIVE_MULTICROSS",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x12": {
|
||||
"key": "SOLID_REACTIVE_NEXUS",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x13": {
|
||||
"key": "SOLID_REACTIVE_MULTINEXUS",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x14": {
|
||||
"key": "SOLID_SPLASH",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x15": {
|
||||
"key": "SOLID_MULTISPLASH",
|
||||
"group": "reactive"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
{
|
||||
"groups": {
|
||||
"framebuffer": {},
|
||||
"reactive": {}
|
||||
},
|
||||
"effects": {
|
||||
"0x01": {
|
||||
"key": "SOLID_COLOR"
|
||||
},
|
||||
"0x02": {
|
||||
"key": "ALPHAS_MODS"
|
||||
},
|
||||
"0x03": {
|
||||
"key": "GRADIENT_UP_DOWN"
|
||||
},
|
||||
"0x04": {
|
||||
"key": "GRADIENT_LEFT_RIGHT"
|
||||
},
|
||||
"0x05": {
|
||||
"key": "BREATHING"
|
||||
},
|
||||
"0x06": {
|
||||
"key": "BAND_SAT"
|
||||
},
|
||||
"0x07": {
|
||||
"key": "BAND_VAL"
|
||||
},
|
||||
"0x08": {
|
||||
"key": "BAND_PINWHEEL_SAT"
|
||||
},
|
||||
"0x09": {
|
||||
"key": "BAND_PINWHEEL_VAL"
|
||||
},
|
||||
"0x0A": {
|
||||
"key": "BAND_SPIRAL_SAT"
|
||||
},
|
||||
"0x0B": {
|
||||
"key": "BAND_SPIRAL_VAL"
|
||||
},
|
||||
"0x0C": {
|
||||
"key": "CYCLE_ALL"
|
||||
},
|
||||
"0x0D": {
|
||||
"key": "CYCLE_LEFT_RIGHT"
|
||||
},
|
||||
"0x0E": {
|
||||
"key": "CYCLE_UP_DOWN"
|
||||
},
|
||||
"0x0F": {
|
||||
"key": "CYCLE_OUT_IN"
|
||||
},
|
||||
"0x10": {
|
||||
"key": "CYCLE_OUT_IN_DUAL"
|
||||
},
|
||||
"0x11": {
|
||||
"key": "RAINBOW_MOVING_CHEVRON"
|
||||
},
|
||||
"0x12": {
|
||||
"key": "CYCLE_PINWHEEL"
|
||||
},
|
||||
"0x13": {
|
||||
"key": "CYCLE_SPIRAL"
|
||||
},
|
||||
"0x14": {
|
||||
"key": "DUAL_BEACON"
|
||||
},
|
||||
"0x15": {
|
||||
"key": "RAINBOW_BEACON"
|
||||
},
|
||||
"0x16": {
|
||||
"key": "RAINBOW_PINWHEELS"
|
||||
},
|
||||
"0x17": {
|
||||
"key": "RAINDROPS"
|
||||
},
|
||||
"0x18": {
|
||||
"key": "JELLYBEAN_RAINDROPS"
|
||||
},
|
||||
"0x19": {
|
||||
"key": "HUE_BREATHING"
|
||||
},
|
||||
"0x1A": {
|
||||
"key": "HUE_PENDULUM"
|
||||
},
|
||||
"0x1B": {
|
||||
"key": "HUE_WAVE"
|
||||
},
|
||||
"0x1C": {
|
||||
"key": "PIXEL_FRACTAL"
|
||||
},
|
||||
"0x1D": {
|
||||
"key": "PIXEL_FLOW"
|
||||
},
|
||||
"0x1E": {
|
||||
"key": "PIXEL_RAIN"
|
||||
},
|
||||
|
||||
"0x1F": {
|
||||
"key": "TYPING_HEATMAP",
|
||||
"group": "framebuffer"
|
||||
},
|
||||
"0x20": {
|
||||
"key": "DIGITAL_RAIN",
|
||||
"group": "framebuffer"
|
||||
},
|
||||
|
||||
"0x21": {
|
||||
"key": "SOLID_REACTIVE_SIMPLE",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x22": {
|
||||
"key": "RGB_MATRIX_SOLID_REACTIVE",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x23": {
|
||||
"key": "RGB_MATRIX_SOLID_REACTIVE_WIDE",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x24": {
|
||||
"key": "SOLID_REACTIVE_MULTIWIDE",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x25": {
|
||||
"key": "SOLID_REACTIVE_CROSS",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x26": {
|
||||
"key": "SOLID_REACTIVE_MULTICROSS",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x27": {
|
||||
"key": "SOLID_REACTIVE_NEXUS",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x28": {
|
||||
"key": "SOLID_REACTIVE_MULTINEXUS",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x29": {
|
||||
"key": "SPLASH",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x2A": {
|
||||
"key": "MULTISPLASH",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x2B": {
|
||||
"key": "SOLID_SPLASH",
|
||||
"group": "reactive"
|
||||
},
|
||||
"0x2C": {
|
||||
"key": "SOLID_MULTISPLASH",
|
||||
"group": "reactive"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
{
|
||||
"effects": {
|
||||
"0x01": {
|
||||
"key": "STATIC_LIGHT"
|
||||
},
|
||||
"0x02": {
|
||||
"key": "BREATHING"
|
||||
},
|
||||
"0x03": {
|
||||
"key": "BREATHING_2"
|
||||
},
|
||||
"0x04": {
|
||||
"key": "BREATHING_3"
|
||||
},
|
||||
"0x05": {
|
||||
"key": "BREATHING_4"
|
||||
},
|
||||
"0x06": {
|
||||
"key": "RAINBOW_MOOD"
|
||||
},
|
||||
"0x07": {
|
||||
"key": "RAINBOW_MOOD_2"
|
||||
},
|
||||
"0x08": {
|
||||
"key": "RAINBOW_MOOD_3"
|
||||
},
|
||||
"0x09": {
|
||||
"key": "RAINBOW_SWIRL"
|
||||
},
|
||||
"0x0A": {
|
||||
"key": "RAINBOW_SWIRL_2"
|
||||
},
|
||||
"0x0B": {
|
||||
"key": "RAINBOW_SWIRL_3"
|
||||
},
|
||||
"0x0C": {
|
||||
"key": "RAINBOW_SWIRL_4"
|
||||
},
|
||||
"0x0D": {
|
||||
"key": "RAINBOW_SWIRL_5"
|
||||
},
|
||||
"0x0E": {
|
||||
"key": "RAINBOW_SWIRL_6"
|
||||
},
|
||||
"0x0F": {
|
||||
"key": "SNAKE"
|
||||
},
|
||||
"0x10": {
|
||||
"key": "SNAKE_2"
|
||||
},
|
||||
"0x11": {
|
||||
"key": "SNAKE_3"
|
||||
},
|
||||
"0x12": {
|
||||
"key": "SNAKE_4"
|
||||
},
|
||||
"0x13": {
|
||||
"key": "SNAKE_5"
|
||||
},
|
||||
"0x14": {
|
||||
"key": "SNAKE_6"
|
||||
},
|
||||
"0x15": {
|
||||
"key": "KNIGHT"
|
||||
},
|
||||
"0x16": {
|
||||
"key": "KNIGHT_2"
|
||||
},
|
||||
"0x17": {
|
||||
"key": "KNIGHT_3"
|
||||
},
|
||||
"0x18": {
|
||||
"key": "CHRISTMAS"
|
||||
},
|
||||
"0x19": {
|
||||
"key": "STATIC_GRADIENT"
|
||||
},
|
||||
"0x1A": {
|
||||
"key": "STATIC_GRADIENT_2"
|
||||
},
|
||||
"0x1B": {
|
||||
"key": "STATIC_GRADIENT_3"
|
||||
},
|
||||
"0x1C": {
|
||||
"key": "STATIC_GRADIENT_4"
|
||||
},
|
||||
"0x1D": {
|
||||
"key": "STATIC_GRADIENT_5"
|
||||
},
|
||||
"0x1E": {
|
||||
"key": "STATIC_GRADIENT_6"
|
||||
},
|
||||
"0x1F": {
|
||||
"key": "STATIC_GRADIENT_7"
|
||||
},
|
||||
"0x20": {
|
||||
"key": "STATIC_GRADIENT_8"
|
||||
},
|
||||
"0x21": {
|
||||
"key": "STATIC_GRADIENT_9"
|
||||
},
|
||||
"0x22": {
|
||||
"key": "STATIC_GRADIENT_10"
|
||||
},
|
||||
"0x23": {
|
||||
"key": "TEST"
|
||||
},
|
||||
"0x24": {
|
||||
"key": "ALTERNATING"
|
||||
},
|
||||
"0x25": {
|
||||
"key": "TWINKLE"
|
||||
},
|
||||
"0x26": {
|
||||
"key": "TWINKLE_2"
|
||||
},
|
||||
"0x27": {
|
||||
"key": "TWINKLE_3"
|
||||
},
|
||||
"0x28": {
|
||||
"key": "TWINKLE_4"
|
||||
},
|
||||
"0x29": {
|
||||
"key": "TWINKLE_5"
|
||||
},
|
||||
"0x2A": {
|
||||
"key": "TWINKLE_6"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,9 @@ class {{ name }}(namedtuple('{{ name }}', '{{ members }}')):
|
||||
{% set type_definitions = [
|
||||
{'name':'XAPRequest', 'members': 'token length data', 'fmt':'<HB61s'},
|
||||
{'name':'XAPResponse', 'members': 'token flags length data', 'fmt':'<HBB60s'},
|
||||
{'name':'XAPConfigRgblight', 'members': 'enable mode hue sat val speed', 'fmt':'<BBBBBB'}
|
||||
{'name':'XAPConfigBacklight', 'members': 'enable mode val', 'fmt':'<BBB'},
|
||||
{'name':'XAPConfigRgblight', 'members': 'enable mode hue sat val speed', 'fmt':'<BBBBBB'},
|
||||
{'name':'XAPConfigRgbMatrix', 'members': 'enable mode hue sat val speed flags', 'fmt':'<BBBBBBB'}
|
||||
] %}
|
||||
{% for item in type_definitions -%}{{ gen_struct(item.name, item.members, item.fmt) }}{% endfor -%}
|
||||
|
||||
|
||||
@@ -1,10 +1,73 @@
|
||||
{
|
||||
version: 0.3.0
|
||||
|
||||
uses: {
|
||||
rgblight: 0.0.1
|
||||
rgb_matrix: 0.0.1
|
||||
led_matrix: 0.0.1
|
||||
}
|
||||
|
||||
routes: {
|
||||
|
||||
0x06: {
|
||||
routes: {
|
||||
|
||||
0x02: {
|
||||
type: router
|
||||
name: backlight
|
||||
define: BACKLIGHT
|
||||
description:
|
||||
'''
|
||||
This subsystem allows for control over the backlight subsystem.
|
||||
'''
|
||||
enable_if_preprocessor: defined(BACKLIGHT_ENABLE)
|
||||
routes: {
|
||||
0x01: {
|
||||
type: command
|
||||
name: Capabilities Query
|
||||
define: CAPABILITIES_QUERY
|
||||
description:
|
||||
'''
|
||||
backlight subsystem capabilities query. Each bit should be considered as a "usable" route within this subsystem.
|
||||
'''
|
||||
return_type: u32
|
||||
return_purpose: capabilities
|
||||
return_constant: XAP_ROUTE_LIGHTING_BACKLIGHT_CAPABILITIES
|
||||
}
|
||||
0x02: {
|
||||
type: command
|
||||
name: Get Enabled Effects
|
||||
define: GET_ENABLED_EFFECTS
|
||||
description: Each bit should be considered as a "usable" effect id
|
||||
return_type: u8
|
||||
return_constant: ENABLED_BACKLIGHT_EFFECTS
|
||||
}
|
||||
0x03: {
|
||||
type: command
|
||||
name: Get Config
|
||||
define: GET_CONFIG
|
||||
description: Query the current config.
|
||||
return_type: struct
|
||||
return_struct_length: 3
|
||||
return_struct_members: [
|
||||
{
|
||||
type: u8
|
||||
name: enable
|
||||
},
|
||||
{
|
||||
type: u8
|
||||
name: mode
|
||||
},
|
||||
{
|
||||
type: u8
|
||||
name: val
|
||||
},
|
||||
]
|
||||
return_execute: get_backlight_config
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
0x03: {
|
||||
type: router
|
||||
name: rgblight
|
||||
@@ -72,6 +135,78 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
0x04: {
|
||||
type: router
|
||||
name: rgbmatrix
|
||||
define: RGB_MATRIX
|
||||
description:
|
||||
'''
|
||||
This subsystem allows for control over the rgb matrix subsystem.
|
||||
'''
|
||||
enable_if_preprocessor: defined(RGB_MATRIX_ENABLE)
|
||||
routes: {
|
||||
0x01: {
|
||||
type: command
|
||||
name: Capabilities Query
|
||||
define: CAPABILITIES_QUERY
|
||||
description:
|
||||
'''
|
||||
rgb matrix subsystem capabilities query. Each bit should be considered as a "usable" route within this subsystem.
|
||||
'''
|
||||
return_type: u32
|
||||
return_purpose: capabilities
|
||||
return_constant: XAP_ROUTE_LIGHTING_RGB_MATRIX_CAPABILITIES
|
||||
}
|
||||
0x02: {
|
||||
type: command
|
||||
name: Get Enabled Effects
|
||||
define: GET_ENABLED_EFFECTS
|
||||
description: Each bit should be considered as a "usable" effect id
|
||||
return_type: u64
|
||||
return_constant: ENABLED_RGB_MATRIX_EFFECTS
|
||||
}
|
||||
0x03: {
|
||||
type: command
|
||||
name: Get Config
|
||||
define: GET_CONFIG
|
||||
description: Query the current config.
|
||||
return_type: struct
|
||||
return_struct_length: 7
|
||||
return_struct_members: [
|
||||
{
|
||||
type: u8
|
||||
name: enable
|
||||
},
|
||||
{
|
||||
type: u8
|
||||
name: mode
|
||||
},
|
||||
{
|
||||
type: u8
|
||||
name: hue
|
||||
},
|
||||
{
|
||||
type: u8
|
||||
name: sat
|
||||
},
|
||||
{
|
||||
type: u8
|
||||
name: val
|
||||
},
|
||||
{
|
||||
type: u8
|
||||
name: speed
|
||||
},
|
||||
{
|
||||
type: u8
|
||||
name: flags
|
||||
},
|
||||
]
|
||||
return_execute: get_rgb_matrix_config
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user