j5.boards.sb.arduino module

Classes for the SourceBots Arduino.

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

Bases: j5.boards.arduino.uno.ArduinoUno

SourceBots Arduino Board.

FIRMWARE_MODES = {<class 'j5.components.derived.ultrasound.UltrasoundSensor'>}
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.
class j5.boards.sb.arduino.UltrasoundSensors(arduino: j5.boards.sb.arduino.SBArduinoBoard)[source]

Bases: object

Helper class for constructing UltrasoundSensor objects on the fly.

This exists so that arduino.ultrasound_sensors can be accessed using square bracket notation like a mapping, for consistency with how other types of component are accessed.