openwrt/feed/waveshare-demo/src/waveshare/main.py
2023-11-15 16:55:31 +02:00

20 lines
219 B
Python

'''
Select images as required
True for image1
False for image2
'''
import time
from . import image
Img = image.image()
while True:
if Img.flgh:
Img.HMI1()
else:
Img.HMI2()
time.sleep(1)