Task 1: Implement a Hardware Interrupt for the Power Button

The T-Watch’s side button is wired through the AXP202’s interrupt pin rather than directly to a GPIO. This task involves setting up an interrupt to detect button presses.

Implementation Guidance

– The side button is connected through the AXP202, which generates an interrupt signal
– Identify the correct interrupt pin from the schematic and configure it accordingly
– Keep your ISR minimal — just set a shared flag when the interrupt fires
– Use a shared flag or task notification to signal the main loop or a task to handle the actual button press logic