Treehopper Python API
Ht16k33 Class Reference

Holtek HT16K33 8x8 matrix LED driver. More...

Inheritance diagram for Ht16k33:
LedDriver Flushable

Classes

class  Package
 

Public Member Functions

def __init__ (i2c, package, a0, a1, a2, address)
 
def flush (force)
 
def brightness ()
 
def clear ()
 

Public Attributes

 global_brightness
 whether this controller has global brightness control More...
 
 individual_brightness
 whether this controller has individual brightness control More...
 
 leds
 the collection of LEDs controlled by this driver. More...
 
 auto_flush
 
 parent
 

Properties

 brightness = property
 

Detailed Description

Holtek HT16K33 8x8 matrix LED driver.

This is a popular driver found in dev boards such as the Adafruit LED backpack.

Examples

>>> from time import sleep
>>> from treehopper.api import *
>>> from treehopper.libraries.displays import Ht16k33
>>> board = find_boards()[0]
>>> board.connect()
>>> driver = Ht16k33(i2c=board.i2c, package=Ht16k33.Package.sop20)
>>> while board.connected:
>>> for led in driver.leds:
>>> led.state = True
>>> sleep(0.04)
>>> for led in driver.leds:
>>> led.state = False
>>> sleep(0.04)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   i2c,
  package,
  a0,
  a1,
  a2,
  address 
)

Member Function Documentation

◆ brightness()

def brightness ( )
inherited

◆ clear()

def clear ( )
inherited

◆ flush()

def flush (   force)

Member Data Documentation

◆ auto_flush

auto_flush
inherited

◆ global_brightness

global_brightness
inherited

whether this controller has global brightness control

◆ individual_brightness

individual_brightness
inherited

whether this controller has individual brightness control

◆ leds

leds
inherited

the collection of LEDs controlled by this driver.

◆ parent

parent
inherited

Property Documentation

◆ brightness

brightness = property
staticinherited

The documentation for this class was generated from the following file: