Skip to content

Commit

Permalink
fixed #9
Browse files Browse the repository at this point in the history
  • Loading branch information
jnweiger committed May 26, 2019
1 parent f8ecb26 commit 11febb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions led-badge-11x44.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import sys, os, re, time, argparse
from array import array
try:
if sys.version_info[0] < 3: raise Exception("prefer usb.core with python-2.x because of https://github.com/jnweiger/led-badge-44x11/issues/9")
import pyhidapi
pyhidapi.hid_init()
have_pyhidapi = True
Expand Down Expand Up @@ -194,14 +195,17 @@
0x00, 0x3c, 0x66, 0x66, 0x66, 0x7c, 0x66, 0x66, 0x66, 0x6c, 0x60,
)

charmap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + \
'abcdefghijklmnopqrstuvwxyz' + \
'0987654321^ !"\0$%&/()=?` °\\}][{' + \
"@ ~ |<>,;.:-_#'+* " + "äöüÄÖÜß"
charmap = u'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + \
u'abcdefghijklmnopqrstuvwxyz' + \
u'0987654321^ !"\0$%&/()=?` °\\}][{' + \
u"@ ~ |<>,;.:-_#'+* " + \
u"äöüÄÖÜß"

char_offset = {}
for i in range(len(charmap)):
char_offset[charmap[i]] = 11 * i
# print(i, charmap[i], char_offset[charmap[i]])


bitmap_preloaded = [ ([],0) ]
bitmaps_preloaded_unused = False
Expand Down
Empty file modified usb-power.sh
100644 → 100755
Empty file.

0 comments on commit 11febb9

Please sign in to comment.