Hi, I'm trying to use the i2c bus to communicate between my fow lx and another board.
but it seems I barelly can't open the i2c driver.
here's my code:
class I2C
{
public:
I2C::I2C()
{
i2c = open("/dev/i2c", O_RDWR);
}
I2C::~I2C()
{
close(i2c);
}
int getI2C() const
{
return i2c;
}
protected:
int i2c;
};
when i use it, the i2c has a value <= 0 (I get the same results when I just do
the open line and test the value it returns).
Any particular trick for this to work??
