EDF - OnePIC MCU
v1.1.0
|
![]() |
Defines | |
#define | FILTER_MEDIAN_LENGTH 3 |
#define | FILTER_MIDDLE_VALUE (FILTER_MEDIAN_LENGTH-1)/2 |
Functions | |
void | EDF_potInit (void) |
no init needed for 32 | |
uint16_t | filterMedian (uint16_t d) |
experiencing some dropped readings, so the median filter takes three samples and passes the median of the three | |
uint16_t | EDF_potRead (void) |
takes the reading |
void EDF_potInit | ( | void | ) |
no init needed for 32
Initilizes the POT to take a reading.
Definition at line 44 of file OnePIC_32bit_pot.c.
uint16_t EDF_potRead | ( | void | ) |
takes the reading
Definition at line 73 of file OnePIC_32bit_pot.c.
uint16_t filterMedian | ( | uint16_t | d | ) |
experiencing some dropped readings, so the median filter takes three samples and passes the median of the three
d | adc value |
Definition at line 53 of file OnePIC_32bit_pot.c.