Step by step access to i2c from UBUNTU 16.4

Options
Kiko
Kiko New Member Posts: 1
I have installed UBUNTU, 4.4.0-2-upboard .

I can flip/flop GPIO devices, but trying to write to any of the /dev/i2c devices produces no output in the device.

Do I need to configure the device in some way prior to try to write in the device?

Do you have some complete small example working?

Thanks in advance

Comments

  • WereCatf
    WereCatf New Member Posts: 201
    Options
    Use i2c-tools, ie. i2cget and i2cset, if you want to use I2C from the command-line, or libmraa/libsoc/Linux ioctl-calls, if you're trying to use I2C from your own code.