1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Fixed 'shaking' readings from ADC/ADC12

This commit is contained in:
Cristian Maglie
2011-11-27 19:15:33 +01:00
parent b853464da8
commit 037ecd3e3e
4 changed files with 30 additions and 18 deletions

View File

@ -43,11 +43,14 @@
#include "../chip.h"
#define ADC_FREQ_MAX 20000000
#define ADC_FREQ_MIN 1000000
#define ADC_FREQ_MAX 5000000
#define ADC_STARTUP 20
#define ADC_STARTUP_NORM 40
#define ADC_STARTUP_FAST 12
#define ADC12_FREQ_MAX 20000000
#define ADC12_FREQ_MIN 1000000
#define ADC12_STARTUP_NORM 40
#define ADC12_STARTUP_FAST 12
/* Definitions for ADC resolution */
typedef enum _adc_resolution_t {