I'm understanding that you are trying to use the ADC in the Galileo Gen 2, right? If that is the case you can use the following command to read the analog value from the input A0:
The value you will get is from 0 to 4096. You have to multiply the value gotten by (5/4096) and you will get the voltage value in a range from 0V to 5V.
Thanks for the reply?
I have execute it and able to get output.
I am facing issue simply get working digital gpio which are working fine on Intel galileo gen1
root@clanton:~# echo -n "27" > /sys/class/gpio/export
root@clanton:~# echo -n "out" > /sys/class/gpio/gpio27/direction
root@clanton:~# cat /sys/class/gpio/gpio27/value
root@clanton:~# echo -n "1" > /sys/class/gpio/gpio27/value
root@clanton:~# echo -n "0" > /sys/class/gpio/gpio27/value
Able to get change in IO7 in galileo gen-1
But not able to get change in Gen-2. I referred EmutexLabs for gpio in gen2.
You are not able to change the value because you are using the wrong gpio. If you want to use the IO7 in the Galileo Gen 2, the gpio number is 38. In the Galileo Gen 1 the gpio number is 27 for the IO7, just like in the commands you posted. So, you just have to use "gpio38" instead "gpio27", and it will work.
Thanks Diego , Now I understand the rest configuration.