Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 01-18-2013, 03:13 PM   #1
Completely Clueless
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 814

Rep: Reputation: 69
Question 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.


Old 01-19-2013, 10:28 AM   #2
Registered: Aug 2002
Posts: 14,076

Rep: Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298Reputation: 1298
Here you go...
1 members found this post helpful.
Old 01-19-2013, 01:08 PM   #3
Completely Clueless
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 814

Original Poster
Rep: Reputation: 69

Originally Posted by michaelk View Post
Ah! Just what I needed; many thanks...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ARMedSlack and Raspberry Pi? blue_k Slackware 240 06-02-2013 07:32 PM
gamepad on raspberry pi vendtagain Linux - Hardware 2 11-29-2012 12:06 AM
Raspberry PI and NAS dragonix Linux - Hardware 7 11-21-2012 09:01 AM
Raspberry Pi project Dutch Master Linux - General 12 08-05-2012 06:48 AM
LXer: Enter the element14 Pi Day ‚??Raspberry RoadTest‚?Ě Challenge for a chance to win a Raspberry Pi c LXer Syndicated Linux News 0 03-08-2012 06:20 AM

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration