Build your nested OLED menu and download ready-to-use MicroPython code
WiFi toggle, sensor readings, settings submenu
Brightness, speed sliders, enum, reset confirm
A simple two-item menu to start from scratch
Auto-refreshing sensor dashboard via CustomItem β scrollable pages, exits on click
# Add items to see generated code
Place menu.py alongside umenu.py.
Call menu.move(-1) / menu.move() for navigation, menu.click() to select.
(my_function, arg)
True (on) or False (off)
draw() to render to self.display, and select() to handle clicks.
Return self to stay active, or self.parent to go back.
draw(self) β called continuously while this item is active
select(self)
up(self)
down(self)