AnalogInputPin

back to FEHIO

Description

Library: FEHIO.h

The AnalogInputPin object allows you to configure any of the 32 Flex I/O pins as an analog input. Use this object to interface with 3.3V input peripherals or other passive peripherals like CdS cells. Once you’ve declared an object of type AnalogInputPin, simply use the “dot” operator to access the object’s member function.

Member Functions

float Value()

Declaration

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

Example

#include <FEHIO.h>

int main(void)
{
    //declare an analog input on P0_3
    AnalogInputPin CdS_cell(FEHIO::P0_3);
}