< All Topics
Print

Pins information

Bus information
import busio
dir(busio)
['__class__', '__name__', 'I2C', 'SPI', 'UART', '__dict__']
Pin information

This lists all the pin names available on the Arduino Nano RP2040 Connect:

import board
dir(board)
['__class__', '__name__', 'A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'CS1', 'D0', 'D1', 'D10', 'D11', 'D12', 'D13', 'D2', 'D3', 'D4', 'D5', 'D6', 'D7', 'D8', 'D9', 'ESP_BUSY', 'ESP_CS', 'ESP_GPIO0', 'ESP_RESET', 'I2C', 'INT1', 'LED', 'MICROPHONE_CLOCK', 'MICROPHONE_DATA', 'MISO', 'MISO1', 'MOSI', 'MOSI1', 'RX', 'SCK', 'SCK1', 'SCL', 'SDA', 'SPI', 'TX', 'UART', '__dict__', 'board_id']

This shows all the raw pin objects:

import microcontroller
print(dir(microcontroller.pin))
['__class__', 'GPIO0', 'GPIO1', 'GPIO10', 'GPIO11', 'GPIO12', 'GPIO13', 'GPIO14', 'GPIO15', 'GPIO16', 'GPIO17', 'GPIO18', 'GPIO19', 'GPIO2', 'GPIO20', 'GPIO21', 'GPIO22', 'GPIO23', 'GPIO24', 'GPIO25', 'GPIO26', 'GPIO27', 'GPIO28', 'GPIO29', 'GPIO3', 'GPIO4', 'GPIO5', 'GPIO6', 'GPIO7', 'GPIO8', 'GPIO9', '__dict__']

Table of Contents