This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAPL138 LCDK GPIO

Hi

I've build Kernel 3.3.0 with GPIO support and I'm trying to switch the led's (D4, 5, 6 and 7) on the LCDK but they always stay lit. I thought I might be using the wrong number for the GPIO pin so I wrote this:

pin_no=0
while [ $pin_no -lt 144 ]
do
echo $pin_no > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio$pin_no/direction
echo 0 > /sys/class/gpio/gpio$pin_no/value
echo $pin_no > /sys/class/gpio/unexport
pin_no=`expr $pin_no + 1`
done

It gives the expected errors for the pins that are already in use but still the led's stay lit - can you help??