board
– Board specific pin names
Common container for board base pin names. These will vary from board to board so don’t expect portability when using this module.
Another common use of this module is to use serial communication buses with
the default pins and settings. For more information about serial communcication
in CircuitPython, see the busio
.
For more information regarding the typical usage of board
, refer to the CircuitPython
Essentials Learn guide
Warning
The board module varies by board. The APIs documented here may or may not be available on a specific board.
Available on these boards
- board.board_id: str
Board ID string. The unique identifier for the board model in circuitpython, as well as on circuitpython.org. Example: “hallowing_m0_express”.
- board.I2C() busio.I2C
Returns the
busio.I2C
object for the board’s designated I2C bus(es). The object created is a singleton, and uses the default parameter values forbusio.I2C
.
- board.SPI() busio.SPI
Returns the
busio.SPI
object for the board’s designated SPI bus(es). The object created is a singleton, and uses the default parameter values forbusio.SPI
.
- board.UART() busio.UART
Returns the
busio.UART
object for the board’s designated UART bus(es). The object created is a singleton, and uses the default parameter values forbusio.UART
.