.RightPressed( )

back to ButtonBoard

Description

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

Parameters

None.

Returns

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

    //performs action until the right button is pressed
    while( !buttons.RightPressed() )
    {
        //do action
    }
}