UIFlow Guide
调节屏幕亮度,并切换屏幕颜色。
from m5stack import *
from m5ui import *
from uiflow import *
import time
setScreenColor(0x222222)
lcd.setBrightness(30)
while True:
setScreenColor(0xff0000)
wait(1)
setScreenColor(0x3366ff)
wait(1)
wait_ms(2)
setScreenColor(0xff0000)
setScreenColor(0xff0000)
setScreenColor(0xff0000)
Palette
: 直接选择颜色面板进行切换屏幕颜色RGB
: 输入RGB数值进行切换颜色面板颜色HEX
: 输入颜色转化而成的16进制数值进行切换数值lcd.setRotation(0)
lcd.setBrightness(30)