Widgets
— A basic UI library
Micropython Example:
import M5
from M5 import Widgets
M5.begin()
Widgets.setBrightness(100)
Widgets.fillScreen(0x6600cc)
Widgets.setRotation(0)
UIFLOW2 Example:
Screen functions
- Widgets.setBrightness(brightness: int)
Set the backlight of the monitor。
brightness
ranges from 0 to 255.UIFLOW2: