back to ButtonBoard
Description
This function is used to determine if the middle button on the button board is currently pressed.
Parameters
None.
Returns
This function returns a boolean of true if the middle button is pressed, and false if it is unpressed.
Examples
#include <FEHIO.h> int main(void) { //declares a button board in bank3 ButtonBoard buttons(FEHIO::Bank3); //waits for the middle button to be pressed while( !buttons.MiddlePressed() ); //waits for the middle button to be unpressed while( buttons.MiddlePressed() ); }