sumanharapanahalli
Posts: 20
Joined: Mon Oct 08, 2012 5:14 am
Location: Bangalore, India

Driver details for I2C,SPI and GPIO on Raspbian

Wed Oct 10, 2012 2:47 pm

Hello Guy's,

I have received my pi recently, I want to use the in built driver of the I2C and GPIO.
Can someone help me find how can I use drivers using C program, or is there any documentation on this drivers or the source code path of the same may also be helpful.

I am willing to interface a touch screen using the same.
Regards
Suman
Thanks & Regards
Sumanth

User avatar
Arjan
Posts: 265
Joined: Sat Sep 08, 2012 1:59 pm

Re: Driver details for I2C,SPI and GPIO on Raspbian

Wed Oct 10, 2012 5:07 pm

Hi,

Some pointers to start with :

I2C Installation for Raspberry Pi – Step by Step Guide
http://www.skpang.co.uk/blog/archives/575

and

Raspberry Pi Examples
http://www.robot-electronics.co.uk/htm/ ... amples.htm
http://www.raspberrypi-dmx.org/
Open Source DMX/RDM/MIDI/OSC/Art-Net/sACN solutions

falken1701
Posts: 4
Joined: Mon Oct 15, 2012 8:30 am

Re: Driver details for I2C,SPI and GPIO on Raspbian

Mon Oct 15, 2012 10:31 am

Hello Joan,
thx for your quick response. But all examples are showing how to access the I2C bus with python or C.
I search for a way that allows the access with ruby on rails.

regards
michael

User avatar
joan
Posts: 16257
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Driver details for I2C,SPI and GPIO on Raspbian

Mon Oct 15, 2012 11:20 am

I know nothing of Ruby. Can't you open/read/write/close files in Ruby? If you can then use the same methods to open/read/write/close the I2C file. If Ruby can't work with files then I'd suggest you use a different programming language.

Return to “General programming discussion”