Merge branch 'master' into master

pull/1/head
Jürgen Weigert 5 years ago committed by GitHub
commit 3a7e42ad98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. BIN
      gfx/falafue_logo_44x11.png
  2. 6
      led-badge-11x44.py

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 364 B

@ -323,9 +323,9 @@ def bitmap_img(file):
buf = array('B')
cols = int((im.width+7)/8)
for col in range(cols):
for row in range(11):
for row in range(11): # [0..10]
byte_val = 0
for bit in range(8):
for bit in range(8): # [0..7]
bit_val = 0
x = 8*col+bit
if x < im.width:
@ -336,7 +336,7 @@ def bitmap_img(file):
monochrome_color = pixel_color
else:
sys.exit("%s: Unknown pixel format detected (%s)!" % (file, pixel_color))
if x < im.width and monochrome_color > 127:
if monochrome_color > 127:
bit_val = 1 << (7-bit)
byte_val += bit_val
buf.append(byte_val)

Loading…
Cancel
Save