Skip to content

Instantly share code, notes, and snippets.

@jlongman
Created April 1, 2017 20:39
Show Gist options
  • Save jlongman/539da04afeeae41c108cd9962c9d7b32 to your computer and use it in GitHub Desktop.
Save jlongman/539da04afeeae41c108cd9962c9d7b32 to your computer and use it in GitHub Desktop.
Generate all possibly combinations of lirc codes for hex style
count = 0
while (count < 0x10000):
formatted = format(count, '04X')
print " KEY_{0} 0x{0}".format(formatted)
count += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment