NumberDisplay
Smart HomeThe house’s three-digit number display.
How you reach it
Section titled “How you reach it”The NumberDisplay class is reached through this attribute of home.
home.number_display
Section titled “home.number_display”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.
Methods
Section titled “Methods”show_number(n, dots)
Section titled “show_number(n, dots)”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
show_text(text)
Section titled “show_text(text)”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
set_digit(index, segments)
Section titled “set_digit(index, segments)”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