f
This commit is contained in:
parent
a6a8c612b4
commit
c8026accec
@ -57,7 +57,7 @@ def subscribe(client: mqtt_client):
|
|||||||
HRYimage = Image.new('1', (epd.height, epd.width), 255) # 298*126 ryimage: red or yellow image
|
HRYimage = Image.new('1', (epd.height, epd.width), 255) # 298*126 ryimage: red or yellow image
|
||||||
drawblack = ImageDraw.Draw(HBlackimage)
|
drawblack = ImageDraw.Draw(HBlackimage)
|
||||||
drawry = ImageDraw.Draw(HRYimage)
|
drawry = ImageDraw.Draw(HRYimage)
|
||||||
drawblack.text((10, 0), 'Received '+ msg.payload.decode()' from topic', font = font20, fill = 0)
|
drawblack.text((10, 0), msg.payload.decode(), font = font20, fill = 0)
|
||||||
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage))
|
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage))
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user