j5.boards.arduino.uno module

Base classes for Arduino Unos.

This is to avoid duplicating code that is common between different Arduino boards.

class j5.boards.arduino.uno.ArduinoUno(serial: str, backend: j5.backends.backend.Backend)[source]

Bases: j5.boards.board.Board

Arduino Uno.

class AnaloguePin[source]

Bases: enum.IntEnum

Analogue Pins numbering.

A0 = 14
A1 = 15
A2 = 16
A3 = 17
A4 = 18
A5 = 19
FIRST_ANALOGUE_PIN = 14
PinNumber = typing.Union[int, j5.boards.arduino.uno.ArduinoUno.AnaloguePin]
firmware_version

Get the firmware version of the board.

Returns:Firmware version of the board.
make_safe() → None[source]

Make this board safe.

name = 'Arduino Uno'
pins

Get the GPIO pins.

Returns:Dictionary of pins on the Arduino.
serial_number

Get the serial number.

Returns:Serial number of the board.
static supported_components() → Set[Type[j5.components.component.Component]][source]

List the types of components supported by this board.

Returns:Set of components supported by the board.