smaller text
This commit is contained in:
parent
ac0959b634
commit
afcd33a0fc
@ -30,7 +30,7 @@ try:
|
||||
|
||||
# Drawing on the image
|
||||
logging.info("Drawing")
|
||||
font18 = ImageFont.truetype(os.path.join(picdir, 'Font.ttc'), 18)
|
||||
font10 = ImageFont.truetype(os.path.join(picdir, 'Font.ttc'), 10)
|
||||
|
||||
# Drawing on the Horizontal image
|
||||
logging.info("1.Drawing on the Horizontal image...")
|
||||
@ -38,11 +38,11 @@ try:
|
||||
HRYimage = Image.new('1', (epd.height, epd.width), 255) # 298*126 ryimage: red or yellow image
|
||||
drawblack = ImageDraw.Draw(HBlackimage)
|
||||
drawry = ImageDraw.Draw(HRYimage)
|
||||
drawblack.text((10, 0), 'PV Produktion', font = font18, fill = 0)
|
||||
drawblack.text((10, 20), 'Hausverbrauch', font = font18, fill = 0)
|
||||
drawblack.text((10, 40), 'Strom Import/Export', font = font18, fill = 0)
|
||||
drawblack.text((10, 60), 'Batterie %', font = font18, fill = 0)
|
||||
drawblack.text((10, 80), 'Batterie Laden/Entladen', font = font18, fill = 0)
|
||||
drawblack.text((0, 0), 'PV Produktion', font = font10, fill = 0)
|
||||
drawblack.text((0, 20), 'Hausverbrauch', font = font10, fill = 0)
|
||||
drawblack.text((0, 40), 'Strom Import/Export', font = font10, fill = 0)
|
||||
drawblack.text((0, 60), 'Batterie %', font = font10, fill = 0)
|
||||
drawblack.text((0, 80), 'Batterie Laden/Entladen', font = font10, fill = 0)
|
||||
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage))
|
||||
time.sleep(2)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user