LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


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

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

Cheers,

CC.
 
Old 01-19-2013, 10:28 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Here you go...

http://elinux.org/RPi_Low-level_peripherals
 
1 members found this post helpful.
Old 01-19-2013, 01:08 PM   #3
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Smile

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 07:33 AM.

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