BB xM gpio as input

Hi all,
I have problem using gpio as input.
I'm trying with pin 24 of the expansion connector (gpio_168).
This is what I've done:
cd /sys/devices/virtual/gpio
echo 168 > export
echo "in" > direction
cat value
0

next I connected pin 1 and pin 24 but nothing happens.

How can I set high value tu pin 24?

hi,

I think the steps should be some what in this way…

cd /sys/devices/virtual/gpio
echo 168 > export
echo “in” > gpio168/direction
cat value

OR the other way is…
cd /sys/devices/virtual/gpio
echo 168 > export
cd gpio168
echo “in” > direction
cat value

Hope this helps you…