mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-16 22:53:22 +00:00
19 lines
422 B
Django/Jinja
19 lines
422 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 %}
|
|
|
|
# noqa: W391 |