Step by step access to i2c from UBUNTU 16.4

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
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
-
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.
Categories
- All Categories
- 105 Announcements & News
- 55 Product News - New Product/Product Change Notice/ End-of-life
- 186 Welcome Developers!
- 55 Unboxing & Project Sharing
- 50 Tech Updates
- 693 UP Products
- 11 UP 7000
- 1 UP Squared i12
- 10 UP Xtreme i12
- 11 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 19 UP Squared V2
- 59 UP 4000
- 24 UP Xtreme i11
- 35 UP Squared 6000
- 60 UP Squared Pro
- 143 UP Xtreme
- 837 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 222 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 216 Starter Kits & Peripheral