Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import smbus
import time
for bus in range(3, 7):
curport = (bus - 2)
print "bus: %2d port: %2d " % (bus, curport)
try:
i2c = smbus.SMBus(bus)