micropython-micro-gui/gui
Bart Cerneels 1d4fece1b6 Allow other Input implementations
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))
```
2022-07-17 23:56:12 +02:00
..
core Allow other Input implementations 2022-07-17 23:56:12 +02:00
demos First pass at bitmap and qrcode widgets. 2022-06-08 17:10:50 +01:00
fonts Add audio demo and icon font. 2021-09-22 09:01:14 +01:00
primitives First pass at bitmap and qrcode widgets. 2022-06-08 17:10:50 +01:00
widgets First pass at bitmap and qrcode widgets. 2022-06-08 17:10:50 +01:00