This issue doesn’t seem to be resolved as there is not a well documented example. In short, the key aspect that appears missing is the concept of interrupts. As opposed to the core micropython Pin definition, which includes interrupts and handlers (6. GPIO Pins — MicroPython 1.9.3 documentation), the current Ardupy build does not include this option. When probing the Pin class functions and attributes only the following are listed:
help(Pin)
object <class ‘Pin’> is of type type
init –
value –
off –
on –
IN – 0
OUT – 1
PULL_UP – 2
PULL_DOWN – 3
IRQ_RISING – 4
IRQ_FALLING – 3
IRQ_CHANGE – 2
So the core question remains, in order to make the Wio Terminal functional with the included buttons, what is the plan to get handlers and interrupts working?
Finally, how do we wrap other Arduino libraries (e.g. GitHub - Dennis-van-Gils/SAMD51_InterruptTimer: SAMD51 Interrupt Timer library for e.g. Adafruit M4 Metro/Feather/ItsyBitsy Express)
Other suggestings include: MQTT, Wifi, and a read/write CSV file from SD card. Please, please make this happen. It is a nice little unit with loads of potential.