14 for (
auto pin : {PIN_BUTTON, PIN_DIO_6, PIN_DIO_12, PIN_DIO_23, PIN_DIO_28, PIN_RESERVED_7})
15 pinMode(pin, INPUT_PULLUP);
16 pinMode(PIN_DIO_13, INPUT_PULLDOWN);
19bool io::get_button() {
return !digitalReadFast(PIN_BUTTON); }
22void io::block_until_button_press_and_release() {
24 while (!get_button()) {
28 while (get_button()) {