2017-03-10 13:30:30 +00:00
|
|
|
# Example: ADC1
|
|
|
|
|
2017-07-18 19:10:06 +00:00
|
|
|
This test code shows how to configure ADC1 and read the voltage connected to GPIO pin.
|
2017-03-10 13:30:30 +00:00
|
|
|
|
|
|
|
|
2017-07-18 19:10:06 +00:00
|
|
|
### ADC1 functions:
|
2017-03-10 13:30:30 +00:00
|
|
|
|
2017-09-11 03:09:15 +00:00
|
|
|
ADC1_CHANNEL_6: GPIO34, voltage range [0V..1.1V], the data range [0..4095]
|
2017-03-10 13:30:30 +00:00
|
|
|
|
|
|
|
|
2017-07-18 19:10:06 +00:00
|
|
|
### Test:
|
2017-03-10 13:30:30 +00:00
|
|
|
|
2017-07-18 19:10:06 +00:00
|
|
|
Please connect the test voltage to GPIO34
|
2017-03-10 13:30:30 +00:00
|
|
|
|