Inkplate 10 wake button reading with MicroPython

Customer:

I have an Inkplate 10 running an application that pulls images from a local server for display. I want to use the wake button to toggle between screens using the MicroPython library, but I can’t read the button’s state to trigger a callback function. Are there examples or documentation for reading the Inkplate 10’s wake button?

Originally submitted via the contact form on soldered.com on 23 January 2024. Migrated to the forum for community visibility.

Soldered Support:

The WAKEUP pin is GPIO36 on Inkplate 10, so you can use that. For reference on digital input handling in MicroPython, see: Digital Inputs | MicroPython Hardware: Digital I/O | Adafruit Learning System