Trying to drive some LEDs through I2C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Max:

* Maximilian Ott <max at semandex.net> [2004-12-30 11:07:07 -0500]:
> Thanks, I'll check it out. BTW, what 2.6 kernel should I use? Should I go
> for the latest?

Sure, (unless you have a specific reason not too) try Linus' 2.6.10.  All
I2C and sensors patches go through Greg K-H, then to the -mm kernel, and
from there to Linus' tree.  But the pace is pretty quick; the difference
between the -mm and Linus' trees (wrt I2C/sensors) always seems small.

> > Hi Max:
> > 
> > * Maximilian Ott <max at semandex.net> [2004-12-27 22:08:19 -0500]:
> > > I'm prototyping an appliance type box based on the EPIA-TC board
> > > 
> > (http://www.viaembedded.com/product/epia_tc_spec.jsp?motherboa
> > rdId=201).
> > > This board supposedly has a I2C bus accessible on a connector.
> > > 
> > > I also built a small board with a few LEDs driven by a TI TPIC2810
> > > (8-BIT LED DRIVER WITH I2C INTERFACE) which I would like to 
> > hook up to the
> > > motherboard and control from a user-space process. The 
> > whole thing will run
> > > a 2.6 linux kernel.
> > > 
> > > Could somebody please give me a few pointers to get started.
> > 
> > It sounds like you already know about I2C and probably SMBus as well.
> > 
> > On Linux, you'll need a bus driver for your board.  Some VIA chipsets
> > are already supported... you could grab the freshly released 2.9.0 of
> > the lm_sensors2 package and build the userspace parts (kernel 
> > 2.6 already
> > has the most up-to-date kernel parts).  Then try 'sensors-detect'.
> > 
> > Assuming you have a working bus driver, the easiest way to access it
> > for prototyping would be the i2c /dev interface.  This requires the
> > module i2c-dev (if you ran 'sensors-detect' OK, you already have it).
> > 
> > Take a look at i2c-dev.h in the kernel headers if you want to 
> > program in
> > in C.  For prototyping, it would be much easier to re-use the Perl 
> > bindings which can be found in sensors-detect.  Or if you 
> > prefer Python,
> > lucky you: I just now published a module for that.  The announcement
> > hasn't appeared in the mail archive yet, but you will eventually see
> > it near the bottom of this page (which is good to browse anyway):
> > 
> > 	http://archives.andrew.net.au/lm-sensors/

-- 
Mark M. Hoffman
mhoffman at lightlink.com



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux