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

Jamon Camisso jamon.camisso-H217xnMUJC0sA/PxXw9srA at public.gmane.org
Fri Jan 17 21:20:30 UTC 2014


On 17/01/14 04:03 PM, Kevin Cozens wrote:
> 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/

I'm glad I decided to just read the device files directly as a first
start! Wow, this stuff gets complicated pretty quickly, quite a large
rabbit hole looming if I'm not careful.

Thanks for all the feedback, I'm refactoring and trying other methods as
suggested.

Cheers, Jamon
--
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