37 #define ADC_TO_FLOAT(i) ((i)/((float)(1<<12)))
44 void adcInit(ADC_TypeDef *ADCx);
144 #endif // __cplusplus
uint16_t analogRead(uint8_t pin)
Read a single pin.
Definition: adc.c:131
void analogReadSampleTime(uint8_t sampleTime)
Set ADC sample time.
Definition: adc.c:37