From: Dave H. <dhy...@gm...> - 2008-04-13 01:04:44
|
Hi Jana, On Sat, Apr 12, 2008 at 4:46 PM, Jana Coakley <ja...@ag...> wrote: > Hey Dave thanks, > How do I access any of the pins individually. I just want to tie them to > turn on 4 different leds in different sequences. Once you figure out the GPIO number you can do: modprobe proc_gpio echo "GPIO out set" > /proc/gpio/GPIO99 (replace 99 with the GPIO pin number) Replace "set" with "clear" to change the output to be low. You might also want to try: <http://docswiki.gumstix.com/index.php/Sample_code/C/gpregs> but replace #ifdef __ARM_EABI__ 0x40E00000 / MAP_SIZE #else 0x40E00000 & ~MAP_MASK #endif with 0x40E00000 & ~MAP_MASK -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |