]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/pentium/n3710/pin.py
Untangle code and remove pylint disables
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / pentium / n3710 / pin.py
index 45ce0e7513a7cd10c66f949753d02beffbd8707a..632e75af229015b75398a7ad4ac9f424d111ae3f 100644 (file)
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
 """Pentium N3710 (Braswell core SOC) pin names
    i2c and GPIO can be accessed through Blinka.
    For i2c use IC20_SCL, IC20-SDA and IC21-SCL, IC21-SDA in the i2c(<sdl, sda>) calls.
 """Pentium N3710 (Braswell core SOC) pin names
    i2c and GPIO can be accessed through Blinka.
    For i2c use IC20_SCL, IC20-SDA and IC21-SCL, IC21-SDA in the i2c(<sdl, sda>) calls.
@@ -70,7 +73,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 +86,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))