Skip to content

Commit

Permalink
Merge pull request #14 from syspart/patch-1
Browse files Browse the repository at this point in the history
Thanks for the patch!
  • Loading branch information
jnweiger authored Jul 18, 2019
2 parents e0663bb + d643393 commit 2486b66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions led-badge-11x44.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ def header(lengths, speeds, modes, blink, ants):

# print(buf) # array('B', [119, 97, 110, 103, 0, 0, 0, 0, 48, 48, 48, 48, 48, 48, 48, 48, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 60, 126, 255, 255, 255, 255, 126, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])

if len(buf) > 8192:
print ("Writing more than 8192 bytes damages the display!")
sys.exit(1)

if have_pyhidapi:
pyhidapi.hid_write(dev, buf)
else:
Expand Down

0 comments on commit 2486b66

Please sign in to comment.