mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-17 07:03:23 +00:00
18 lines
413 B
Django/Jinja
18 lines
413 B
Django/Jinja
{{ constants.GPL2_HEADER_SH_LIKE }}
|
|
{{ constants.GENERATED_HEADER_SH_LIKE }}
|
|
from enum import IntEnum
|
|
|
|
|
|
# version: 0.0.1
|
|
class RgblightModes(IntEnum):
|
|
{%- for id, effect in specs.rgblight.effects | dictsort %}
|
|
{{ effect.key }} = {{ id }}
|
|
{%- endfor %}
|
|
|
|
|
|
# version: 0.0.1
|
|
class RgbMatrixModes(IntEnum):
|
|
{%- for id, effect in specs.rgb_matrix.effects | dictsort %}
|
|
{{ effect.key }} = {{ id }}
|
|
{%- endfor %}
|