This commit is contained in:
Robert Borzutzki 2022-10-19 13:51:06 +02:00
parent 2e5de68399
commit 7e13713d42

View File

@ -44,7 +44,7 @@ try:
drawblack.text((5, 45), 'Batterie %', font = font10, fill = 0) drawblack.text((5, 45), 'Batterie %', font = font10, fill = 0)
drawblack.text((5, 60), 'Batterie Laden/Entladen', font = font10, fill = 0) drawblack.text((5, 60), 'Batterie Laden/Entladen', font = font10, fill = 0)
#epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage)) #epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage))
epd.display(epd.getbuffer(HBlackimage)) epd.DisplayPartial(epd.getbuffer(HBlackimage))
time.sleep(2) time.sleep(2)
except IOError as e: except IOError as e:
@ -78,8 +78,6 @@ def on_message(client, userdata, msg):
line = 60 line = 60
print(line) print(line)
epd.init()
epd.Clear()
values_image = Image.new('1', (epd.width, epd.height), 255) values_image = Image.new('1', (epd.width, epd.height), 255)
values_draw = ImageDraw.Draw(values_image) values_draw = ImageDraw.Draw(values_image)