For my professional project,
i need to display in my lcd, some icon on the top.
By example, one whe eth0 ifup.
idem for wlan0.
i have done this script :
( only for display my icon, it is launched in a bash script, introduced in /etc/network/interfaces for ifup )
I have done the same one for wlan0.
Code: Select all
#!/usr/bin/env python import time from gfxhat import lcd, backlight, fonts from PIL import Image, ImageFont, ImageDraw #Image de demarrage image = Image.open("/home/ethernet.bmp") for x in range(20): for y in range(20): pixel = image.getpixel((x, y)) if pixel == 0: pixel = 1 else: pixel = 0 lcd.set_pixel(x, y, pixel) print(pixel) lcd.show()
But when i lauch one scripts, all informations in the screen are updated.
Can we update by area, to let present informations already in place.
thanks by advance