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

10 lines
320 B
Plaintext
Raw Normal View History

2022-07-17 21:02:18 +00:00
class XAPRoutes():
2022-07-17 01:58:14 +00:00
{%- for id, route in xap.routes | dictsort %}
{%- if route.routes %}
2022-07-17 21:02:18 +00:00
# {{route.define}}
2022-07-17 01:58:14 +00:00
{%- for subid, subroute in route.routes | dictsort %}
2022-07-17 21:02:18 +00:00
{{route.define}}_{{subroute.define}} = b'\x{{ '%02d' % id|int(base=16) }}\x{{ '%02d' % subid|int(base=16) }}'
2022-07-17 01:58:14 +00:00
{%- endfor %}
{%- endif %}
{%- endfor %}