kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
README.md add Menu image.
rodzic
cad9767688
commit
b7df9c99fe
|
@ -2110,6 +2110,7 @@ value changes. This enables dynamic color change.
|
||||||
```python
|
```python
|
||||||
from gui.widgets.menu import Menu
|
from gui.widgets.menu import Menu
|
||||||
```
|
```
|
||||||
|

|
||||||
|
|
||||||
This enables the creation of single or two level menus. The top level of the
|
This enables the creation of single or two level menus. The top level of the
|
||||||
menu consists of a row of `Button` instances at the top of the screen. Each
|
menu consists of a row of `Button` instances at the top of the screen. Each
|
||||||
|
|
|
@ -51,4 +51,4 @@ sel = Pin(16, Pin.IN, Pin.PULL_UP) # Operate current control
|
||||||
prev = Pin(18, Pin.IN, Pin.PULL_UP) # Move to previous control
|
prev = Pin(18, Pin.IN, Pin.PULL_UP) # Move to previous control
|
||||||
increase = Pin(20, Pin.IN, Pin.PULL_UP) # Increase control's value
|
increase = Pin(20, Pin.IN, Pin.PULL_UP) # Increase control's value
|
||||||
decrease = Pin(17, Pin.IN, Pin.PULL_UP) # Decrease control's value
|
decrease = Pin(17, Pin.IN, Pin.PULL_UP) # Decrease control's value
|
||||||
display = Display(ssd, nxt, sel, prev, increase, decrease, 5)
|
display = Display(ssd, nxt, sel, prev, increase, decrease) #, 5)
|
||||||
|
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 119 KiB |
Ładowanie…
Reference in New Issue