tm1637_display
Driver for the TM1637 display.
Author(s): Neradoc
Implementation Notes
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
- class tm1637_display.TM1637Display(clock: Pin, data: Pin, length: int = 4, digit_order: tuple = None, auto_write: bool = True, bit_delay: int = _DEFAULT_BIT_DELAY, brightness: int = 7)
Numeric 7-segment display.
- Parameters:
clock (microcontroller.Pin) – The clock pin.
data (microcontroller.Pin) – The data pin.
length (int) – The number of characters on the display.
digit_order (int) – The order of the digits on the display, if it doesn’t match the internal order of the chip. Reverse it for LTR.
auto_write (bool) – True if the display should immediately change when set. If False,
showmust be called explicitly.bit_delay (int) – The (minimum) delay between bit twiddlings in us.
brightness (int) – The brightness, value from 0 to 7, False if off.
- property brightness
Brightness is a value between 0 and 7. Set to None to turn off.
- clear()
Clear the display, nothing on it.
- deinit()
Deinit. Free the pins.
- show()
Refresh the display and show the changes.