connectors

class bno055.connectors.Connector.Connector(node: Node)[source]

Bases: object

Parent class for bno055 connectors.

This class does NOT contain protocol-specific code for UART, I2C, etc.

class bno055.connectors.uart.UART(node: Node, baudrate, port, timeout)[source]

Bases: Connector

Connector implementation for serial UART connection to the sensor.

connect()[source]

Connect to the sensor.

Returns:

read(reg_addr, length)[source]

Read data from sensor via UART.

Parameters:
  • reg_addr – The register address

  • length – The data length

Returns:

write(reg_addr, length, data: bytes)[source]

Transmit data packages to the sensor.

Parameters:
  • reg_addr – The register address

  • length – The data length

Returns: