Koduino
|
INPUT_ANALOG
Functions | |
void | analogReadSampleTime (uint8_t sampleTime) |
Set ADC sample time. More... | |
uint16_t | analogRead (uint8_t pin) |
Read a single pin. More... | |
uint16_t analogRead | ( | uint8_t | pin | ) |
Read a single pin.
Should take ~5us for (see analogReadSampleTime())
pin | Pin name to read |
void analogReadSampleTime | ( | uint8_t | sampleTime | ) |
Set ADC sample time.
This should be seen as a type of filtering. The default is 13.5 cycles, which is the minimum for 12-bit accuracy.
sampleTime | One of ADC_SampleTime_1Cycles5 , ADC_SampleTime_7Cycles5 , ADC_SampleTime_13Cycles5 (default), ADC_SampleTime_28Cycles5 , ADC_SampleTime_41Cycles5 , ADC_SampleTime_55Cycles5 , ADC_SampleTime_71Cycles5 , ADC_SampleTime_239Cycles5 . (E.g. the default is 13.5 cycles sampling time) |