DART-6UL ADC: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{PageHeader|DART-6UL - ADC}} {{DocImage|category1=DART-6UL|category2=Yocto}} __toc__ | {{PageHeader|DART-6UL - ADC}} {{DocImage|category1=DART-6UL|category2=Yocto}} __toc__ | ||
ADC channel 0 is connected to the user button. It has pull-up to 3.3V. <br>Reading the ADC value will return 3000+ value in case of button released and 0+ in case of button pressed. | ADC channel 0 is connected to the user button. It has pull-up to 3.3V. <br>Reading the ADC value will return 3000+ value in case of button released and 0+ in case of button pressed. | ||
<pre> | <pre> | ||
# cd /sys/bus/iio/devices/iio:device0 | |||
# cat in_voltage0_raw | |||
push the user button | push the user button | ||
# cat in_voltage0_raw | |||
</pre> | </pre> |
Revision as of 13:47, 22 September 2016
DART-6UL - ADC
ADC channel 0 is connected to the user button. It has pull-up to 3.3V.
Reading the ADC value will return 3000+ value in case of button released and 0+ in case of button pressed.
# cd /sys/bus/iio/devices/iio:device0 # cat in_voltage0_raw push the user button # cat in_voltage0_raw