ToF Hat

The following products are supported:

ToFHat

class ToFHat

Constructors

class ToFHat(i2c: I2C, address: int = 0x29, io_timeout_ms: int = 0)

Creates an instance of the ToFHat class.

Parameters:
  • i2c – the I2C object.

  • address – the I2C address of the device. Default is 0x23.

  • io_timeout_ms – the timeout of I2C communication. Default is 0ms.

UIFLOW2:

init.svg

ToFHat class inherits ToFUnit class, See unit.ToFUnit.Methods for more details.