Intel Galileo GPIO not working from Clanton terminal

108 views Asked by At

I am trying to use GPIO in Intel Galileo Gen 2 using Clanton terminal. For this I am using this tutorial. I am trying to use GPIO pin 12 of Galileo board. So, according to GPIO Pins Assignment table of this tutorial, I have to export "38". For testing purpose, I have connected an led with 330 ohm resistor in series with pin 12 of Galileo board and then I type following command:-

echo -n "38" > /sys/class/gpio/export

echo -n "out" > /sys/class/gpio/gpio38/direction

echo -n "strong" > /sys/class/gpio/gpio38/drive

echo -n "1" > /sys/class/gpio/gpio38/value

After these command, I was expecting to get my led ON but nothing happens. So, I check the Pin state using this command:-

cat /sys/class/gpio/gpio38/value

And I am getting value 1. So, I want to know what exactly I am missing here. Do pin mapping is different or there is any other way to use GPIO in Clanton? Thanks in advance

0

There are 0 answers