How can I use gpio under debian?

Started by bubi, February 01, 2014, 01:09:01 AM

Previous topic - Next topic

bubi

Hi everybody, I'm trying to use GPIO under debian. I'm following the instruction in the wiki (https://www.olimex.com/wiki/A20-OLinuXino-MICRO#GPIO_under_Linux) but I continue to get the error:"bash: echo: write error: Invalid argument".

I'm using the last release (ULTIMATE A20 Debian 4GB SD-card image release-5)

What am I doing wrong?

many thanks in advance!

sanzoghenzo

Hi bubi,
are you sure you're running the commands as root?
Can you please post all your commands and the relative output, so we can better understand what's going on?

bubi

hi sanzoghenzo,
thanks for reply!

I solved. I don't have 230 GPIO, so I replaced 230 with 75 (as in the bin file) and now I can access GPIO!