A couple of blogs related to GPIO on beagleboard:
http://wh1t3s.com/2009/05/14/reading-beagleboard-gpio/
http://blog.makezine.com/2009/02/03/blinking-leds-with-the-beagle-board/
Sunday, May 20, 2012
Thursday, May 17, 2012
GPIO on Beagleboard xM rev C
For BB xM Rev C the expansion pin 24 (GPIO168) is reserved for the I2C
SCL signal and it cannot be changed without tweaking U-Boot and kernel
settings. You can export GPIO168 just fine and it appears as if you
could change the state, however the pin stays high no matter what you
do.
Instead one should use pin 22 for instance (GPIO157). This works fine.
So:
cd /sys/class/gpio
echo "157" > export
cd gpio157
echo "low" > direction (voltage on pin 22 should go low)
echo "high" > direction (voltage on pin 22 should go to 1.82V)
Instead one should use pin 22 for instance (GPIO157). This works fine.
So:
cd /sys/class/gpio
echo "157" > export
cd gpio157
echo "low" > direction (voltage on pin 22 should go low)
echo "high" > direction (voltage on pin 22 should go to 1.82V)
Subscribe to:
Posts (Atom)