12

Is it possible to communicate with I²C devices via the GPIOs?

Also, are there any existing drivers or libraries that make this possible from Python?

0

1 Answer 1

7

According to the wiki, I2C is exposed on pins 3 (SDA) and 5 (SCL).

Using from Python on Debian (Untested)

Based on reading this forum post.

Run

sudo apt-get install python-smbus

to install the drivers. At the time of writing, there is a test script here.

Note: Someone needs to test this.

1
  • "Someone needs to test this." When my RPi arrives, I'll test it. Commented Jun 18, 2012 at 9:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.