LED Backpack - Raspberry Pi Ver 2 - Error accessing I2C Address

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
sakhara
 
Posts: 2
Joined: Tue Oct 23, 2012 11:57 pm

LED Backpack - Raspberry Pi Ver 2 - Error accessing I2C Address

Post by sakhara »

Looking for a little help on changing the IC2 Bus from "/dev/i2c-0" to "/dev/i2c-1" in the Adafruit Library.

When following the instructions on this page:
http://learn.adafruit.com/matrix-7-segm ... it-library
8x8_pixels.py output ends repeating:
Error accessing 0x70: Check your I2C address

I2cdetect -y -0
Returns no devices
I2cdetect -y -1
Returns the LED Backpack on 70

I assume the Library, Class, Scripts are setup for /dev/i2c-0.
I've searched the forum and dug through some of the code but cannot find where to successfully change the 'port'
Any pointers on where to change the 'port' reference in the above library?

OS = stock Raspbian “wheezy” not Occidentalis (Yes I know, I'll give it a try next)

Thanks!

User avatar
sakhara
 
Posts: 2
Joined: Tue Oct 23, 2012 11:57 pm

Re: LED Backpack - Raspberry Pi Ver 2 - Error accessing I2C Address

Post by sakhara »

Found it and fixed.
If anybody else finds this:

Change
Adafruit_I2C.py

class Adafruit_I2C :

def __init__(self, address, bus=smbus.SMBus(0), debug=False):
to
def __init__(self, address, bus=smbus.SMBus(1), debug=False):

Docteh
 
Posts: 1
Joined: Fri Oct 26, 2012 1:49 am

Re: LED Backpack - Raspberry Pi Ver 2 - Error accessing I2C Address

Post by Docteh »

Which board revision do you have? do you have mounting holes on yours? I read that they swapped the two i2c busses around between revisions.

VOYAGERUSA
 
Posts: 13
Joined: Tue Sep 11, 2012 7:54 pm

Re: LED Backpack - Raspberry Pi Ver 2 - Error accessing I2C Address

Post by VOYAGERUSA »

tnx SAKARA been trying to figure it out on mine also all my projects i have on my 256 didnt work on 512 because of this and not good at code python.
Hope the put in a check of model and swap ports/bus to 1 with the 512 save time unless you use camera header it has 0 now.
Voyager

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”