Examples of I2c in Python
#2
You can grab this library : https://github.com/swkim01/RPi.GPIO-PineA64
I've contribute to add I2c and SPI almost 4 weeks ago.
There is no example provided, but it should look like :

Code:
from RPi import I2C as i2c

i2c.init("/dev/i2c-1")
i2c.open(0x20)
i2c.write([0x00, 0x00])
  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,643 10-02-2016, 02:36 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)