DigitalOutputPin

back to FEHIO

Description

Library: FEHIO.h

This object allows you to configure any of the 32 Flex I/O pins on the Proteus as a digital output. Use this object to interface with 3.3V peripherals like LEDs. Once you have created an object of type DigitalOutputPin, you will have access to all of the associated member functions. Simply use the “dot” operator to access these member functions and write a value, toggle the output, or check the status of your output pin.

Member Functions

void Write(bool);
void Toggle();
bool Status();

Declaration

DigitalOutputPin <variable name>(FEHIO::FEHIOPin);

Example

#include <FEHIO.h>

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