1 # SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
3 # SPDX-License-Identifier: MIT
4 """Broadcom BCM283x pin names"""
6 # Use RPi.GPIO pins for Raspberry Pi 1-3B+
7 from adafruit_blinka.microcontroller.generic_linux.rpi_gpio_pin import Pin
30 SCLK = Pin(11) # Raspberry Pi naming
31 SCK = Pin(11) # CircuitPython naming
80 # ordered as spiId, sckId, mosiId, misoId
82 (0, SCLK, MOSI, MISO),
83 (1, SCLK_1, MOSI_1, MISO_1),
84 (2, SCLK_2, MOSI_2, MISO_2),
87 # ordered as uartId, txId, rxId
88 uartPorts = ((1, TXD, RXD),)
90 # These are the known hardware I2C ports / pins.
91 # For software I2C ports created with the i2c-gpio overlay, see:
92 # https://github.com/adafruit/Adafruit_Python_Extended_Bus
95 (0, D1, D0), # both pi 1 and pi 2 i2c ports!