#pragma once #include /** * Configures the next-photo button GPIO (CONFIG_FRAME_NEXT_BUTTON_GPIO, * active-low with internal pull-up) and arms it as a deep-sleep wakeup * source, same as reset_button_init(). Call once, early in app_main(), * before the device might enter deep sleep. * * A no-op if CONFIG_FRAME_NEXT_BUTTON_GPIO is negative (button disabled). */ void next_button_init(void); /** * Returns whether the next-photo button is currently held, debounced with * a couple of short re-checks to reject noise. Unlike the reset button, * there's no long hold-to-confirm gate -- advancing a photo is low-stakes * and should feel immediate, so this returns right away either way. */ bool next_button_check(void);