]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Use busnum 2 for I2C on BeagleBone Black
authorDrew Fustini <drew@pdp7.com>
Mon, 29 Oct 2018 21:27:27 +0000 (21:27 +0000)
committerDrew Fustini <drew@pdp7.com>
Mon, 29 Oct 2018 21:27:27 +0000 (21:27 +0000)
Change i2cPorts to use bus num 2 by default on the
BeagleBone Black. This is needed for I2C device
wired up to P9.19 (I2C2_SCL) and P9.20 (I2C2_SDA).

for reference, pin diagram including default i2c pins:
http://beagleboard.org/static/images/cape-headers.png

src/adafruit_blinka/microcontroller/beaglebone_black/pin.py

index 8e9a46b5304e660d3b4c9a23da6931e2a0a2d585..ac20f9585de6f4a8b0f65c74c13e150709577de6 100644 (file)
@@ -141,6 +141,6 @@ uartPorts = (
 )
 
 i2cPorts = (
-    (1, SCL, SDA),
+    (2, SCL, SDA),
 )