1 # SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
3 # SPDX-License-Identifier: MIT
4 """Broadcom BCM2711 pin names"""
6 from adafruit_blinka.microcontroller.bcm283x.pin import Pin
8 GPIO.setmode(GPIO.BCM) # Use BCM pins D4 = GPIO #4
9 GPIO.setwarnings(False) # shh!
32 SCLK = Pin(11) # Raspberry Pi naming
33 SCK = Pin(11) # CircuitPython naming
82 # ordered as spiId, sckId, mosiId, misoId
84 (0, SCLK, MOSI, MISO),
85 (6, SCLK_1, MOSI_1, MISO_1),
86 (2, SCLK_2, MOSI_2, MISO_2),
92 # ordered as uartId, txId, rxId
93 uartPorts = ((1, TXD, RXD),)
95 # These are the known hardware I2C ports / pins.
96 # For software I2C ports created with the i2c-gpio overlay, see:
97 # https://github.com/adafruit/Adafruit_Python_Extended_Bus
100 (0, D1, D0), # both pi 1 and pi 2 i2c ports!
101 (10, D45, D44), # internal i2c bus for the CM4