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

9 lines
341 B
Plaintext
Raw Normal View History

2022-07-17 01:58:14 +00:00
# TODO: assumption of only one level of children
{%- for id, route in xap.routes | dictsort %}
{%- if route.routes %}
# {{route.define}}
{%- for subid, subroute in route.routes | dictsort %}
{{route.define}}_{{subroute.define}} = b'\x{{ '%02d' % id|int(base=16) }}\x{{ '%02d' % subid|int(base=16) }}'
{%- endfor %}
{%- endif %}
{%- endfor %}