Complete the code to enter standby mode.
void enter_standby() {
[1]();
}The function enter_standby_mode() is used to put the device into standby mode.
Complete the code to clear the standby flag after waking up.
void clear_standby_flag() {
[1](STANDBY_FLAG);
}The function clear_flag() is used to clear specific flags like the standby flag.
Fix the error in the code to correctly configure the wakeup source before standby.
void configure_wakeup() {
[1](WAKEUP_PIN);
}The correct function to enable a wakeup source is enable_wakeup_source().
Fill both blanks to correctly check and clear the standby flag after wakeup.
if ([1](STANDBY_FLAG)) { [2](STANDBY_FLAG); }
Use check_flag() to test if the standby flag is set, then clear_flag() to clear it.
Fill all three blanks to create a dictionary mapping wakeup pins to their status after standby.
wakeup_status = {{BLANK_4}}: [2] for [3] in wakeup_pins if check_flag([3])This dictionary comprehension maps each pin to its status using get_pin_status() for pins where check_flag(pin) is true.