]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
reformatted with black
authorkent <fuzzballz@comcast.net>
Sat, 15 Aug 2020 21:13:25 +0000 (14:13 -0700)
committerkent <fuzzballz@comcast.net>
Sat, 15 Aug 2020 21:13:25 +0000 (14:13 -0700)
src/adafruit_blinka/board/udoo_x86ultra.py
src/adafruit_blinka/microcontroller/pentium/n3710/pin.py

index b25c92b2865d1f9c04bb06458ffa0aba96e3263c..744d7744912b042aa480cc0d9e05cd8d310407d3 100644 (file)
@@ -63,8 +63,8 @@ UART1_TX = D18
 UART2_RX = D23
 UART2_TX = D22
 
 UART2_RX = D23
 UART2_TX = D22
 
-I2C0_SCL = D34 # labeled on diagram as I2C1, hardware manual port 0
-I2C0_SDA = D35 # i2cdetect-l lists it as i2c-0
+I2C0_SCL = D34  # labeled on diagram as I2C1, hardware manual port 0
+I2C0_SDA = D35  # i2cdetect-l lists it as i2c-0
 
 
-I2C1_SCL = D38 # Labeled on diagram as I2C2, hardware manual port 5
-I2C1_SCL = D39 # i2cdetect lists it as i2c-1
+I2C1_SCL = D38  # Labeled on diagram as I2C2, hardware manual port 5
+I2C1_SCL = D39  # i2cdetect lists it as i2c-1
index 45ce0e7513a7cd10c66f949753d02beffbd8707a..3093a2021c790c211609498e64d1ecdb01699ff3 100644 (file)
@@ -70,7 +70,7 @@ GPIO_436 = UART2_CTS
 
 # i2c use these addresses when accessing i2c from Blinka.  You can also access
 # the i2c useing smbus
 
 # i2c use these addresses when accessing i2c from Blinka.  You can also access
 # the i2c useing smbus
-I2C0_SDA = Pin((0, 61)) # IC21 on diagram, port 0 in hardware manual
+I2C0_SDA = Pin((0, 61))  # IC21 on diagram, port 0 in hardware manual
 I2C0_SCL = Pin((0, 65))
 
 I2C1_SDA = TS_I2C_SDA = Pin((0, 45))  # I2C2 on diagram, port 5 in hardware manual
 I2C0_SCL = Pin((0, 65))
 
 I2C1_SDA = TS_I2C_SDA = Pin((0, 45))  # I2C2 on diagram, port 5 in hardware manual
@@ -83,5 +83,4 @@ GPIO_475 = I2C0_SDA  # I2C1 on diagram
 GPIO_479 = I2C0_SCL
 
 # ordered as i2cId, sclId, sdaId
 GPIO_479 = I2C0_SCL
 
 # ordered as i2cId, sclId, sdaId
-i2cPorts = ((0, I2C0_SCL, I2C0_SDA),
-            (1, I2C1_SCL, I2C1_SDA))
+i2cPorts = ((0, I2C0_SCL, I2C0_SDA), (1, I2C1_SCL, I2C1_SDA))