@@ -30,20 +30,20 @@ This function is used to get the ADC raw value for a given pin/ADC channel.
30
30
31
31
* ``pin `` GPIO pin to read analog value
32
32
33
- This function will return analog raw value.
33
+ This function will return analog raw value (non-calibrated) .
34
34
35
35
analogReadMillivolts
36
36
^^^^^^^^^^^^^^^^^^^^
37
37
38
- This function is used to get ADC value for a given pin/ADC channel in millivolts.
38
+ This function is used to get ADC raw value for a given pin/ADC channel and convert it to calibrated result in millivolts.
39
39
40
40
.. code-block :: arduino
41
41
42
42
uint32_t analogReadMilliVolts(uint8_t pin);
43
43
44
44
* ``pin `` GPIO pin to read analog value
45
45
46
- This function will return analog value in millivolts.
46
+ This function will return analog value in millivolts (calibrated) .
47
47
48
48
analogReadResolution
49
49
^^^^^^^^^^^^^^^^^^^^
@@ -62,19 +62,6 @@ Range is 1 - 16 .The default value will be used, if this function is not used.
62
62
63
63
* ``bits `` sets analog read resolution
64
64
65
- analogSetClockDiv
66
- ^^^^^^^^^^^^^^^^^
67
-
68
- This function is used to set the divider for the ADC clock.
69
-
70
- Range is 1 - 255. Default value is 1.
71
-
72
- .. code-block :: arduino
73
-
74
- void analogSetClockDiv(uint8_t clockDiv);
75
-
76
- * ``clockDiv `` sets the divider for ADC clock.
77
-
78
65
analogSetAttenuation
79
66
^^^^^^^^^^^^^^^^^^^^
80
67
@@ -149,17 +136,6 @@ This function is used to set the attenuation for a specific pin/ADC channel. For
149
136
* ``pin `` selects specific pin for attenuation settings.
150
137
* ``attenuation `` sets the attenuation.
151
138
152
- adcAttachPin
153
- ^^^^^^^^^^^^
154
-
155
- This function is used to attach the pin to ADC (it will also clear any other analog mode that could be on)
156
-
157
- .. code-block :: arduino
158
-
159
- bool adcAttachPin(uint8_t pin);
160
-
161
- This function will return ``true `` if configuration is successful. Else returns ``false ``.
162
-
163
139
ADC API specific for ESP32 chip
164
140
*******************************
165
141
@@ -173,30 +149,7 @@ Range is 9 - 12.
173
149
.. code-block :: arduino
174
150
175
151
void analogSetWidth(uint8_t bits);
176
-
177
- analogSetVRefPin
178
- ^^^^^^^^^^^^^^^^
179
-
180
- This function is used to set pin to use for ADC calibration if the esp is not already calibrated (pins 25, 26 or 27).
181
-
182
- .. code-block :: arduino
183
-
184
- void analogSetVRefPin(uint8_t pin);
185
-
186
- * ``pin `` GPIO pin to set VRefPin for ADC calibration
187
152
188
- hallRead
189
- ^^^^^^^^
190
-
191
- This function is used to get the ADC value of the HALL sensor conneted to pins 36(SVP) and 39(SVN).
192
-
193
- .. code-block :: arduino
194
-
195
- int hallRead();
196
-
197
- This function will return the hall sensor value.
198
-
199
-
200
153
Example Applications
201
154
********************
202
155
0 commit comments