.LeftPressed( )

back to ButtonBoard

Description

This function is used to determine if the left button on the button board is currently pressed.

Parameters

None.

Returns

This function returns a boolean of true if the left 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);

    //checks if the left button is pressed
    if( buttons.LeftPressed() )
    {
        //do action
    }
}