get_scale
- get_scale(address: str, min_threshold: float, max_threshold: float) Scale | NullScale[source]
Factory function to initialize the Scale.
- Parameters:
address (str) – The I2C address of the scale.
- Returns:
An initialized Scale instance or a null scale on failure.
- Return type:
Scale | NullScale