mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-08-05 00:40:49 -04:00
Generate python effect constants
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from enum import IntEnum
|
||||
|
||||
|
||||
# version: 0.0.1
|
||||
class RgblightModes(IntEnum):
|
||||
{%- for id, effect in constants.rgblight.effects | dictsort %}
|
||||
{{ effect.key }} = {{ id }}
|
||||
{%- endfor %}
|
||||
|
||||
|
||||
class RgbMatrixModes(IntEnum):
|
||||
{%- for id, effect in constants.rgb_matrix.effects | dictsort %}
|
||||
{{ effect.key }} = {{ id }}
|
||||
{%- endfor %}
|
||||
Reference in New Issue
Block a user