kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
1d4fece1b6
This enables alternative implementations that could, for instance, use ESP touchpads: ``` prv = buttons.touch_0 sel = buttons.touch_1 nxt = buttons.touch_2 class TouchInput: def __init__(self, prv, sel, nxt): self._prev = Touch(prv, 0) self._sel = Touch(sel, 1) self._next = Touch(nxt, 2) self._prev.press_func(Screen.ctrl_move, (_PPREV,)) self._sel.release_func(Screen.sel_ctrl) self._next.press_func(Screen.ctrl_move, (_NNEXT,)) def precision(self, val): Screen.redraw_co() def adj_mode(self, v=None): Screen.redraw_co() def is_adjust(self): return False disp = Display(ssd, input=TouchInput(prv, sel, nxt)) ``` |
||
---|---|---|
.. | ||
core | ||
demos | ||
fonts | ||
primitives | ||
widgets |