.Status( )

back to DigitalOutputPin

Description

This function allows the user to get the current value written to a DigitalOutputPin object.

Parameters

None.

Returns

This functions returns a boolean corresponding to the current value written to the associated DigitalOutputPin object.

Examples

#include <FEHIO.h>

int main(void)
{
    //declares a digital output pin on P0_3
    DigitalOutputPin red_LED(FEHIO::P0_3);

    //get the default digital output value by reading the status of the pin
    bool x = red_LED.Status();
}