UIFlow Guide
Adjusts the screen brightness and switches the screen color.
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
: switch screen colors by directly selecting the color panelRGB
: Enter RGB values to toggle the color panel colors.HEX
: input color converted to hexadecimal value to switch valueslcd.setRotation(0)
lcd.setBrightness(30)