How to read a 1-wire sensor with C on a Raspberry Pi

Kevin Cozens kevin-4dS5u2o1hCn3fQ9qLvQP4Q at public.gmane.org
Fri Jan 17 21:03:03 UTC 2014


On 14-01-17 01:04 PM, Mel Wilson wrote:
> AFAIK there's a thick layer of drivers between a RasPi application
> program and the GPIO pins.

The size of the layer between a Pi program and the GPIO pins depends on the 
programming lanaguge you are using and how you choose to access the I/O 
pins. If I was programming in Python I could use the Python GPIO library. If 
I'm writing in C I can choose to directly access the GPIO pins.

See:
   https://sites.google.com/site/semilleroadt/raspberry-pi-tutorials/gpio
   http://www.pieter-jan.com/node/15
   http://www.airspayce.com/mikem/bcm2835/

-- 
Cheers!

Kevin.

http://www.ve3syb.ca/           |"Nerds make the shiny things that distract
Owner of Elecraft K2 #2172      | the mouth-breathers, and that's why we're
                                 | powerful!"
#include <disclaimer/favourite> |             --Chris Hardwick
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list