Fri Aug 01, 2014 3:38 am
Yep the i2c examples suck, never could figure out the weather station code, think it had a device driver?
You can call external system commands like i2cget -y 1 xx
Took me ages to figure it out, then I forgot how to do it:(
Seem to remember you can call external functions but cannot pass parameters as well?
Shell scripting?
One thing I had luck with was to use python to read the i2c sensors, write the data to a file then get Mathematica to read the file.
Since everything in Linux is a file, possible to read directly?
I use Cypress PSoC1's a lot for custom i2c sensors, I/O etc
CY8C28445 has 4 x 14bit ADC's, 2 x i2c ports, one for programming/RPi comms, the other for combining other i2c sensors data.
Even has software i2c, so any pin can be programmed for i2c I/O.
Programmer miniprog3 has i2c option, very useful for debugging any i2c device/register.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges