Usage of 86ADC
Describe
86ADC is a built-in tool program for L86duntu, which is used to read the voltage value detected by the A/D pin on the 86Duino board. The implementation method is to directly call analogRead() in the 86Duino API, and its original code is placed in the /home/dmp/86Duino_Tools/src/86adc
directory, and users can refer to or modify it themselves.
How to use
When using 86ADC, just enter the following commands directly in the /home/dmp/86Duino_Tools
directory:.
./86adc [pin]
pin
: Specify the pin to be read. There can be two ways to represent it, 0~6 or A0~A6. .
After execution, the read value will be printed on the screen, with the value range of 0~1024.
Example
1. The following command will read the pin with A/D pin number A2:
./86adc 2
2. The following command will read the pin with A/D pin number A5:
./86adc A5
The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.