Use blikm directly from linux i2c bus

  • Question
  • Updated 3 years ago
I want to work with the blinkm directly from an alix box that has an onboard i2c header. The box runs ubuntu, and so far I learned, that it should be possible for example by using i2cget and i2cset from the package i2c-tools which is part of the lm-sensors project.
Has anybody here tried that?
I think it's possible, but not straightforward. So, before diving into, I hope, someone already invested the time...;-)
Photo of Richard Ulrich

Richard Ulrich

  • 2 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 2
Photo of todbot

todbot, Official Rep

  • 611 Posts
  • 155 Reply Likes
Official Response
I'm looking at the i2cset manpage from lmsensors and I think out of the box it can't be used reliably with BlinkM. It assumes the I2C device has a register model, which works fine for temp sensors and such. Since BlinkM commands are longer than register writes, I think the BlinkM is getting confused by using two i2cset commands .

It looks like however that an update to i2cset has been checked in that allows for I2C block writes: http://www.lm-sensors.org/changeset/5911 If you can get a version of i2cset that has these new features, I think it could work.