qmk_firmware/data/templates/xap/client/python/constants.py.j2

18 lines
413 B
Plaintext
Raw Normal View History

{{ constants.GPL2_HEADER_SH_LIKE }}
{{ constants.GENERATED_HEADER_SH_LIKE }}
2022-10-13 00:42:27 +00:00
from enum import IntEnum
# version: 0.0.1
class RgblightModes(IntEnum):
{%- for id, effect in specs.rgblight.effects | dictsort %}
2022-10-13 00:42:27 +00:00
{{ effect.key }} = {{ id }}
{%- endfor %}
# version: 0.0.1
2022-10-13 00:42:27 +00:00
class RgbMatrixModes(IntEnum):
{%- for id, effect in specs.rgb_matrix.effects | dictsort %}
2022-10-13 00:42:27 +00:00
{{ effect.key }} = {{ id }}
{%- endfor %}