Skip to content

Search the documentation

Kit
Firmware

NumberDisplay

Smart Home

The house’s three-digit number display.

The NumberDisplay class is reached through this attribute of home.

Can be None until you call home.enable_number_display().

All the attributes of home are in its table. Read Attributes that can be None to see when a part is None.

Shows a number, right-aligned on the three digits; dots, a list of three True/False, lights each digit’s dot.

show_number(n, dots=None)

Used in examples: Seven segment, Doorbell

Shows up to three characters, right-aligned like show_number. Each digit is made of seven little light bars, so it can draw 0 to 9, the letters A b C d E F H L P (capital or small), a dash - and a space.

show_text(text)

Used in examples: Seven segment

Lights the named segments of one digit (index 0, 1 or 2 from the left), for example ["A", "B", "G", "DP"].

set_digit(index, segments)

Used in examples: Seven segment