APIwasPressedOn this pagewasPressedDescriptionReturns true if the button state was pressed at the last read.bool was_pressed = button.wasPressed();