Add files via upload

pull/1/head
kitazaki 5 years ago committed by GitHub
parent 5282f04bd0
commit 24fbf46971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      led-badge-11x44.py

@ -328,6 +328,7 @@ def bitmap_img(file):
for bit in range(8):
bit_val = 0
x = 8*col+bit
if x < im.width:
pixel_color = im.getpixel( (x, row) )
if isinstance(pixel_color, tuple):
monochrome_color = sum(pixel_color[:3]) / len(pixel_color[:3])

Loading…
Cancel
Save