From 3b9e4f65c569331d566c09a56606afae1b514435 Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 19:14:43 +0200 Subject: [PATCH] test --- examples/mqtt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/mqtt.py b/examples/mqtt.py index e8baab8..e1fb7cf 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -68,7 +68,7 @@ try: drawblack.text((5, 45), 'Batterie %', font = font10, fill = 0) drawblack.text((5, 60), 'Batterie Laden/Entladen', font = font10, fill = 0) #epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage)) - epd.DisplayPartial(epd.getbuffer(HBlackimage)) + epd.display(epd.getbuffer(HBlackimage)) #values_image = Image.new('1', (epd.height, epd.width), 255) #values_draw = ImageDraw.Draw(values_image) @@ -161,7 +161,7 @@ try: logging.info(value_energyImportExport) logging.info(value_houseBatterySoC) logging.info(value_houseBatteryLoadUnload) - drawblack.rectangle((150, 0, 220, 50), fill = 0) + drawblack.rectangle((150, 0, 220, 50), fill = 1) drawblack.text((150, 0), value_pvProduction, font = font10, fill = 0) drawblack.rectangle((150, 15, 220, 50), fill = 255) drawblack.text((150, 15), value_wHouseConsumption, font = font10, fill = 0) @@ -172,7 +172,7 @@ try: drawblack.rectangle((150, 60, 220, 50), fill = 255) drawblack.text((150, 60), value_houseBatteryLoadUnload, font = font10, fill = 0) - epd.DisplayPartial(epd.getbuffer(HBlackimage)) + epd.display(epd.getbuffer(HBlackimage)) except KeyboardInterrupt: print("exiting")