fix
This commit is contained in:
		
							parent
							
								
									acc0cae26e
								
							
						
					
					
						commit
						2e5de68399
					
				| @ -78,10 +78,13 @@ def on_message(client, userdata, msg): | |||||||
|         line = 60 |         line = 60 | ||||||
| 
 | 
 | ||||||
|     print(line) |     print(line) | ||||||
|     drawblack.text((150, line), "    ", font = font10, fill = 0) |     epd.init()     | ||||||
|     epd.DisplayPartial(epd.getbuffer(HBlackimage)) |     epd.Clear() | ||||||
|     drawblack.text((150, line), msg.payload.decode(), font = font10, fill = 0) |     values_image = Image.new('1', (epd.width, epd.height), 255) | ||||||
|     epd.DisplayPartial(epd.getbuffer(HBlackimage)) |     values_draw = ImageDraw.Draw(values_image) | ||||||
|  | 
 | ||||||
|  |     values_draw.text((150, line), msg.payload.decode(), font = font10, fill = 0) | ||||||
|  |     epd.DisplayPartial(epd.getbuffer(values_image)) | ||||||
|     #print(f"`{msg.topic}`: `{msg.payload.decode()}`") |     #print(f"`{msg.topic}`: `{msg.payload.decode()}`") | ||||||
| 
 | 
 | ||||||
| Connected = False   #global variable for the state of the connection | Connected = False   #global variable for the state of the connection | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user