EDF - OnePIC MCU  v1.1.0
Potentiometer
Collaboration diagram for Potentiometer:

Functions

void EDF_potInit (void)
 Initilizes the POT to take a reading.
uint16_t EDF_potRead (void)
 takes the reading

Function Documentation

void EDF_potInit ( void  )

Initilizes the POT to take a reading.

Note:
must call this every time before processing ADC due to mTouch configureing ADCON

Definition at line 39 of file OnePIC_8bit_pot.c.

Here is the caller graph for this function:

uint16_t EDF_potRead ( void  )

takes the reading

Returns:
the 16bit digital representation of the analog voltage
Note:
ADC result is 10bits wide

Definition at line 53 of file OnePIC_8bit_pot.c.

Here is the caller graph for this function: