constants.py.j2 422 B

12345678910111213141516171819
  1. {{ constants.GPL2_HEADER_SH_LIKE }}
  2. {{ constants.GENERATED_HEADER_SH_LIKE }}
  3. from enum import IntEnum
  4. # version: 0.0.1
  5. class RgblightModes(IntEnum):
  6. {% for id, effect in specs.rgblight.effects | dictsort %}
  7. {{ effect.key }} = {{ id }}
  8. {% endfor %}
  9. # version: 0.0.1
  10. class RgbMatrixModes(IntEnum):
  11. {% for id, effect in specs.rgb_matrix.effects | dictsort %}
  12. {{ effect.key }} = {{ id }}
  13. {% endfor %}
  14. # noqa: W391