Thermal Unit

Support the following products:

ThermalUnit

class ThermalUnit

Constructors

class ThermalUnit(i2c, address: int = 0x33)

Create a ThermalUnit object.

Parameters:
  • i2c – the I2C object.

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

UIFLOW2:

init.svg

Methods

property ThermalUnit.get_max_temperature
Type:

float

get the max temperature.

UIFLOW2:

get_max_temperature.svg

property ThermalUnit.get_min_temperature
Type:

float

get the min temperature.

UIFLOW2:

get_min_temperature.svg

property ThermalUnit.get_midpoint_temperature
Type:

float

get the midpoint temperature.

UIFLOW2:

get_midpoint_temperature.svg

ThermalUnit.get_pixel_temperature(x: int, y: int) float

get the temperature of the pixel at the specified coordinates.

Parameters:
  • x (int) – The x coordinate of the pixel.

  • y (int) – The y coordinate of the pixel.

Returns:

The temperature of the pixel.

UIFLOW2:

get_pixel_temperature.svg

property ThermalUnit.get_refresh_rate
Type:

float

get the refresh rate.

UIFLOW2:

get_refresh_rate.svg

ThermalUnit.get_temperature_buffer() list

get the temperature buffer.

Returns:

The temperature buffer.

UIFLOW2:

get_temperature_buffer.svg

ThermalUnit.set_refresh_rate(rate: int) None

Set the refresh rate.

Parameters:

rate (int) – The refresh rate in Hz.

UIFLOW2:

set_refresh_rate.svg

ThermalUnit.update_temperature_buffer() bytes

Update the temperature buffer.

Returns:

The temperature buffer.

UIFLOW2:

update_temperature_buffer.svg