]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/rockchip/rk3308/pin.py
Added pre-commit support
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / rockchip / rk3308 / pin.py
index 80c5c7682340697fe2934f52c5a3271578f4253f..24b0c40dd37ddf13f643ba7e125ed46d31701152 100644 (file)
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
 """A Pin class for use with Rockchip RK3308."""
 
 from adafruit_blinka.microcontroller.generic_linux.sysfs_pin import Pin
@@ -134,10 +137,12 @@ ADC_IN0 = 1
 
 
 # I2C
+I2C0_SDA = GPIO1_D0
+I2C0_SCL = GPIO1_D1
 I2C1_SDA = GPIO0_B3
 I2C1_SCL = GPIO0_B4
-I2C2_SDA = GPIO1_D0
-I2C2_SCL = GPIO1_D1
+I2C2_SDA = GPIO2_A2
+I2C2_SCL = GPIO2_A3
 I2C3_SDA = GPIO0_B7
 I2C3_SCL = GPIO0_C0
 
@@ -161,6 +166,7 @@ PWM3 = GPIO0_C0
 
 # ordered as i2cId, SCL, SDA
 i2cPorts = (
+    (0, I2C0_SCL, I2C0_SDA),
     (1, I2C1_SCL, I2C1_SDA),
     (2, I2C2_SCL, I2C2_SDA),
     (3, I2C3_SCL, I2C3_SDA),