$ cat pins.py
import board
print(vars(board))
$ sudo -E python3 pins.py
Copyright (c) 1991-1995 Stichting Mathematisch Centrum,
Amsterdam.
All Rights Reserved., 'credits':
Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a
cast of thousands
for supporting Python
development. See www.python.org for more
information., 'license': Type license() to see the full
license text, 'help': Type help() for interactive help, or
help(object) for help about object.}, '__version__':
'8.56.0', '__repo__':
'https://github.com/adafruit/Adafruit_Blinka.git',
'__blinka__': True, 'sys': <module 'sys'
(built-in)>, 'ap_board': <module
'adafruit_platformdetect.constants.boards' from
'/home/pico/.local/lib/python3.10/site-packages/adafruit_platformdetect/constants/boards.py'>,
'board_id': 'LUCKFOX_PICO_MAX', 'detector':
<adafruit_platformdetect.Detector object at
0xa6c0bca0>, 'pin': <module
'adafruit_blinka.microcontroller.rockchip.rv1106.pin' from
'/home/pico/.local/lib/python3.10/site-packages/adafruit_blinka/microcontroller/rockchip/rv1106/pin.py'>,
'G42': (1, 10), 'G43': (1, 11), 'G55': (1, 23), 'G54': (1,
22), 'G53': (1, 21), 'G52': (1, 20), 'G58': (1, 26),
'G59': (1, 27), 'G73': (2, 9), 'G48': (1, 16), 'G49': (1,
17), 'G50': (1, 18), 'G51': (1, 19), 'G72': (2, 8), 'G56':
(1, 24), 'G57': (1, 25), 'G68': (2, 4), 'G69': (2, 5),
'G64': (2, 0), 'G65': (2, 1), 'G66': (2, 2), 'G67': (2,
3), 'G70': (2, 6), 'G71': (2, 7), 'UART3_TX': (1, 24),
'UART3_RX': (1, 25), 'UART4_TX': (1, 21), 'UART4_RX': (1,
20), 'TX': (1, 24), 'RX': (1, 25), 'TXD': (1, 24), 'RXD':
(1, 25), 'I2C3_SCL': (1, 27), 'I2C3_SDA': (1, 26), 'SCL':
(1, 27), 'SDA': (1, 26), 'SPI0_MISO': (1, 19),
'SPI0_MOSI': (1, 18), 'SPI0_SCLK': (1, 17), 'SPI0_CS0':
(1, 16), 'SPI0_CS1': (1, 26), 'MISO': (1, 19), 'MOSI': (1,
18), 'SCLK': (1, 17), 'PWM5': (2, 8), 'PWM6': (2, 9),
'PWM10': (1, 22), 'PWM11': (1, 23), 'ADC_IN0': 0,
'ADC_IN1': 1, 'I2C': <function I2C at 0xa6c19268>,
'SPI': <function SPI at 0xa6c22e38>}
|