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?

AnonyoZarif
  • 334
  • 1
  • 13
Damian Powell
  • 229
  • 2
  • 6

1 Answers1

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.

Alex Chamberlain
  • 15,530
  • 14
  • 67
  • 113