# SPDX-License-Identifier: MIT
"""Allwinner H618 Pin Names"""
from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin
# SPDX-License-Identifier: MIT
"""Allwinner H618 Pin Names"""
from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin
- parts = line.split()
- for part in parts:
- if part.startswith('gpiochip'):
- gpiochip_number = part[len('gpiochip'):]
- break
- break
+ match = re.search(r'gpiochip(\d+)', line)
+ if match:
+ gpiochip_number = match.group(1)
+ break
PG18 = Pin((__chip_num, 210))
TWI3_SDA = PG18
PG19 = Pin((__chip_num, 211))
PG18 = Pin((__chip_num, 210))
TWI3_SDA = PG18
PG19 = Pin((__chip_num, 211))
PH0 = Pin((__chip_num, 224))
PH1 = Pin((__chip_num, 225))
PH0 = Pin((__chip_num, 224))
PH1 = Pin((__chip_num, 225))
UART3_RX = PI10
PI11 = Pin((__chip_num, 267))
PI12 = Pin((__chip_num, 268))
UART3_RX = PI10
PI11 = Pin((__chip_num, 267))
PI12 = Pin((__chip_num, 268))
PI13 = Pin((__chip_num, 269))
UART4_TX = PI13
PI14 = Pin((__chip_num, 270))
PI13 = Pin((__chip_num, 269))
UART4_TX = PI13
PI14 = Pin((__chip_num, 270))