1 """Broadcom BCM2711 pin names"""
 
   2 import RPi.GPIO as GPIO
 
   3 from adafruit_blinka.microcontroller.bcm283x.pin import Pin
 
   5 GPIO.setmode(GPIO.BCM)  # Use BCM pins D4 = GPIO #4
 
   6 GPIO.setwarnings(False)  # shh!
 
  29 SCLK = Pin(11)  # Raspberry Pi naming
 
  30 SCK = Pin(11)  # CircuitPython naming
 
  79 # ordered as spiId, sckId, mosiId, misoId
 
  81     (0, SCLK, MOSI, MISO),
 
  82     (6, SCLK_1, MOSI_1, MISO_1),
 
  83     (2, SCLK_2, MOSI_2, MISO_2),
 
  89 # ordered as uartId, txId, rxId
 
  90 uartPorts = ((1, TXD, RXD),)
 
  92 # These are the known hardware I2C ports / pins.
 
  93 # For software I2C ports created with the i2c-gpio overlay, see:
 
  94 #     https://github.com/adafruit/Adafruit_Python_Extended_Bus
 
  97     (0, D1, D0),  # both pi 1 and pi 2 i2c ports!
 
  98     (10, D45, D44),  # internal i2c bus for the CM4