adafruit_ht16k33.ht16k33

  • Authors: Radomir Dopieralski & Tony DiCola for Adafruit Industries
class adafruit_ht16k33.ht16k33.HT16K33(i2c, address=112, auto_write=True)[source]

The base class for all displays. Contains common methods.

Parameters:
  • address (int) – The I2C addess of the HT16K33.
  • auto_write (bool) – True if the display should immediately change when set. If False, show must be called explicitly.
auto_write

Auto write updates to the display.

The blink rate. Range 0-3.

brightness

The brightness. Range 0-15.

fill(color)[source]

Fill the whole display with the given color.

show()[source]

Refresh the display and show the changes.

Matrix Displays

class adafruit_ht16k33.matrix.Matrix16x8(i2c, address=112, auto_write=True)[source]

A double matrix or the matrix wing.

pixel(x, y, color=None)[source]

Get or set the color of a given pixel.

class adafruit_ht16k33.matrix.Matrix8x8(i2c, address=112, auto_write=True)[source]

A single matrix.

pixel(x, y, color=None)[source]

Get or set the color of a given pixel.

class adafruit_ht16k33.matrix.Matrix8x8x2(i2c, address=112, auto_write=True)[source]

A bi-color matrix.

fill(color)[source]

Fill the whole display with the given color.

pixel(x, y, color=None)[source]

Get or set the color of a given pixel.

Segment Displays

class adafruit_ht16k33.segments.BigSeg7x4(i2c, address=112, auto_write=True)[source]

Numeric 7-segment display. It has the same methods as the alphanumeric display, but only supports displaying a limited set of characters.

ampm

The AM/PM indicator.

class adafruit_ht16k33.segments.Colon(disp, num_of_colons=1)[source]

Helper class for controlling the colons. Not intended for direct use.

class adafruit_ht16k33.segments.Seg14x4(i2c, address=112, auto_write=True)[source]

Alpha-numeric, 14-segment display.

print(value)[source]

Print the value to the display.

scroll(count=1)[source]

Scroll the display by specified number of places.

class adafruit_ht16k33.segments.Seg7x4(i2c, address=112, auto_write=True)[source]

Numeric 7-segment display. It has the same methods as the alphanumeric display, but only supports displaying a limited set of characters.

scroll(count=1)[source]

Scroll the display by specified number of places.