LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/forumdisplay.php?f=78)
-   -   Accessing I/O in Raspberry Pi (http://www.linuxquestions.org/questions/showthread.php?t=4175446223)

Completely Clueless 01-18-2013 03:13 PM

Accessing I/O in Raspberry Pi
 
HI all,

So I've got my Pi and have loaded it up with the cut-down version of Arch with no gui; just a command line.

I want to use this Pi as a controller for a programmable time delay lock which will open at certain pre-determined times.

I'd prefer to do this in C rather than Bash on balance, being very much more familiar with the former. Problem is, I've only ever written utilities that read and write to and from files, the keyboard and the screen. Now I have to somehow access the GPIO pins of the Pi and have no idea how to go about it.

Can anyone tell me how these pins can be brought into service in C or Bash? Do I need to install any additional software for their support? There seems to be a distinct dearth of info on the subject, so any pointers/advice would be very welcome.

Cheers,

CC.

michaelk 01-19-2013 10:28 AM

Here you go...

http://elinux.org/RPi_Low-level_peripherals

Completely Clueless 01-19-2013 01:08 PM

Quote:

Originally Posted by michaelk (Post 4873532)

Ah! Just what I needed; many thanks...


All times are GMT -5. The time now is 10:08 AM.