test
This commit is contained in:
		
							parent
							
								
									f0f45564af
								
							
						
					
					
						commit
						3b9e4f65c5
					
				@ -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")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user