I want to send and receive data with I2C2 (P9_19= I2C2 Clock, P9_20= I2C2 Data). The Adafruit IO Python Library (Justin Cooper) for Debian I have installed.
My programm in the Python Shell is:
>>>from Adafruit_I2C import Adafruit _I2C
>>>i2c = Adafruit_I2C(0x77)
>>>adress = 0x21
>>>i2c.write8(0x12, 0x22)
Error accessing 0x77: Check your I2C adress
-1
On P9_19 and P9_20 I have no Clock respectively Data output. Both stay on logical 1.
Please, can you help me and tell me what I have to do in order to make it work.
I2c on BBB
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: I2c on BBB
what do you get from i2cdetect -y 1
Can you post the output? Is anything detected at 0x77?
Can you post the output? Is anything detected at 0x77?
- Niki
- Posts: 3
- Joined: Tue Jun 09, 2015 9:19 am
Re: I2c on BBB
Thank you for helping me.
If I write i2cdetect -y 1 in the linux shell, it says "Error: Can`t use SMBUS Quick Write command on this bus"
I am sorry but I dont know what I have to do to detect on 0x77.
When I test with my Hp-Logic Probe on P9_19 or P9_20, there is always Logic 1.
If I write i2cdetect -y 1 in the linux shell, it says "Error: Can`t use SMBUS Quick Write command on this bus"
I am sorry but I dont know what I have to do to detect on 0x77.
When I test with my Hp-Logic Probe on P9_19 or P9_20, there is always Logic 1.
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: I2c on BBB
are you running these as 'sudo' commands?
- Niki
- Posts: 3
- Joined: Tue Jun 09, 2015 9:19 am
Re: I2c on BBB
There is no change using sudo command.
Please be positive and constructive with your questions and comments.