Examples of I2c in Python
#3
(12-15-2016, 03:37 PM)martinayotte Wrote: You can grab this library : https://github.com/swkim01/RPi.GPIO-PineA64
I've contribute to add I2c and SPI almost 4 weeks ago.

I attempted to update my RPi.GPIO-PineA64 by cloning from GitHub and when I run Python setup.py install I get the  errors shown below. I'm sure somehow I've probably misconfigured my system or am overlooking something obvious or simple. Does anyone have any suggestions on correctly installing the RPi.GPIO-PineA64 package with all its new goodies?

_______________________________________

In file included from source/i2c/i2c_lib.c:34:0:
/usr/include/linux/i2c-dev.h:37:8: error: redefinition of ‘struct i2c_msg’
 struct i2c_msg {
        ^
In file included from source/i2c/i2c_lib.c:33:0:
/usr/include/linux/i2c.h:68:8: note: originally defined here
 struct i2c_msg {
        ^
In file included from source/i2c/i2c_lib.c:34:0:
/usr/include/linux/i2c-dev.h:89:7: error: redefinition of ‘union i2c_smbus_data’
 union i2c_smbus_data {
       ^
In file included from source/i2c/i2c_lib.c:33:0:
/usr/include/linux/i2c.h:129:7: note: originally defined here
 union i2c_smbus_data {
       ^
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  Reply


Messages In This Thread
Examples of I2c in Python - by blanius - 12-12-2016, 09:12 AM
RE: Examples of I2c in Python - by martinayotte - 12-15-2016, 03:37 PM
RE: Examples of I2c in Python - by HayseedGeek - 12-29-2016, 02:20 PM
RE: Examples of I2c in Python - by dkryder - 12-29-2016, 07:11 PM
RE: Examples of I2c in Python - by martinayotte - 12-30-2016, 03:39 PM
RE: Examples of I2c in Python - by dkryder - 01-10-2017, 02:53 PM
RE: Examples of I2c in Python - by GliderHenry - 09-27-2017, 10:35 PM
RE: Examples of I2c in Python - by GliderHenry - 10-02-2017, 08:25 PM
RE: Examples of I2c in Python - by tllim - 10-02-2017, 08:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting Temperature/Humidity/Ambient Light data with Python Yomet 8 11,642 10-02-2016, 02:36 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 5 Guest(s)