+# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
"""MediaTek MT8167 pin names"""
from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin
GPIO39 = Pin(39) # MRG_DO (pin 40)
# Aliases
-PWM0 = GPIO25 # EINT12 (pin 32)
-PWM1 = GPIO11 # EINT25 (pin 33)
-PWM2 = GPIO12 # EINT11 (pin 15)
+PWM_A = GPIO25 # EINT12 (pin 32)
+PWM_B = GPIO11 # EINT25 (pin 33)
+PWM_C = GPIO12 # EINT11 (pin 15)
I2C1_SDA = GPIO52 # SDA1 (pin 3)
I2C1_SCL = GPIO53 # SCL1 (pin 5)
# SysFS pwm outputs, pwm channel and pin in first tuple
pwmOuts = (
- ((0, 0), PWM0),
- ((0, 1), PWM1),
- ((0, 2), PWM2),
+ ((0, 0), PWM_A),
+ ((0, 1), PWM_B),
+ ((0, 2), PWM_C),
)
# ordered as i2cId, sclId, sdaId