This commit is contained in:
Robert Borzutzki 2022-10-18 21:45:23 +02:00
parent 0b3027e848
commit b124ee496c

View File

@ -33,7 +33,7 @@ try:
logging.info("4.read bmp file on window")
blackimage1 = Image.new('1', (epd.height, epd.width), 255) # 298*126
redimage1 = Image.new('1', (epd.height, epd.width), 255) # 298*126
newimage = Image.open(os.path.join(picdir, 'elektrizitat.png'))
newimage = Image.open(os.path.join(picdir, 'elektrizitat.bmp'))
blackimage1.paste(newimage, (10,10))
epd.display(epd.getbuffer(blackimage1), epd.getbuffer(redimage1))