adafruit_ht16k33.ht16k33
¶
Authors: Radomir Dopieralski & Tony DiCola for Adafruit Industries
- class adafruit_ht16k33.ht16k33.HT16K33(i2c: busio.I2C, address: int = 112, auto_write: bool = True, brightness: float = 1.0)[source]¶
The base class for all displays. Contains common methods.
- Parameters
- property auto_write¶
Auto write updates to the display.
- property blink_rate¶
The blink rate. Range 0-3.
- property brightness¶
The brightness. Range 0.0-1.0
Matrix Displays¶
- class adafruit_ht16k33.matrix.Matrix16x8(i2c: busio.I2C, address: int = 112, auto_write: bool = True, brightness: float = 1.0)[source]¶
The matrix wing.
- class adafruit_ht16k33.matrix.Matrix8x8(i2c: busio.I2C, address: int = 112, auto_write: bool = True, brightness: float = 1.0)[source]¶
A single matrix.
- property columns¶
Read-only property for number of columns
- image(img)[source]¶
Set buffer to value of Python Imaging Library image. The image should be in 1 bit mode and a size equal to the display size.
- pixel(x: int, y: int, color: Optional[bool] = None) Optional[bool] [source]¶
Get or set the color of a given pixel.
- property rows¶
Read-only property for number of rows
- shift(x: int, y: int, rotate: bool = False)[source]¶
Shift pixels by x and y
- Parameters
rotate – (Optional) Rotate the shifted pixels to the left side (default=False)
- shift_down(rotate: bool = False)[source]¶
Shift all pixels down
- Parameters
rotate – (Optional) Rotate the shifted pixels to top (default=False)
- shift_left(rotate: bool = False)[source]¶
Shift all pixels left
- Parameters
rotate – (Optional) Rotate the shifted pixels to the right side (default=False)
- class adafruit_ht16k33.matrix.Matrix8x8x2(i2c: busio.I2C, address: int = 112, auto_write: bool = True, brightness: float = 1.0)[source]¶
A bi-color matrix.
Segment Displays¶
- class adafruit_ht16k33.segments.BigSeg7x4(i2c: busio.I2C, address: int = 112, auto_write: bool = True)[source]¶
Numeric 7-segment display. It has the same methods as the alphanumeric display, but only supports displaying a limited set of characters.
- property ampm¶
The AM/PM indicator.
- property bottom_left_dot¶
The bottom-left dot indicator.
- property top_left_dot¶
The top-left dot indicator.
- class adafruit_ht16k33.segments.Colon(disp: adafruit_ht16k33.segments.Seg7x4, num_of_colons: int = 1)[source]¶
Helper class for controlling the colons. Not intended for direct use.
- class adafruit_ht16k33.segments.Seg14x4(i2c: busio.I2C, address: int = 112, auto_write: bool = True, brightness: float = 1.0)[source]¶
Alpha-numeric, 14-segment display.