(07-25-2016, 12:35 PM)puddles Wrote:(07-22-2016, 07:28 PM)DonFL Wrote:(07-22-2016, 03:18 PM)puddles Wrote: After a lot of Google and trouble shooting I can't seem to enable I2C on the board. Does anyone know of any tutorials or anything that can help me set it up?
Thanks!
Also I'm using Debian XFCE from https://www.pine64.pro/downloads/
I'm using debian-mate, and I2C on the Pi bus works fine with nothing done by me to enable it..it was good to go by default.
If you're using the expansion board, thats a different story, take a look at this thread: http://forum.pine64.org/showthread.php?tid=1813
OK thanks for the feedback; that helps a lot. What libraries do you use to program it? I've been trying to get python code I wrote for Raspberry Pi to work, but just get a IOError (121 remote io error).
First would suggest you use i2c-tools to see if you your i2c device is being seen. Since the i2c expansion board has issues, you'll need to connect directly to the pi bus SDA/SCL pins.
Also make sure you've installed the python smbus.
If you've got working python code used on the pi, and you know the i2c device address, should be an easy port over to the Pine.