0

Micropython HT16K33 library problem
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Micropython HT16K33 library problem

by tedgill on Sat Dec 16, 2017 1:53 am

Running Micropython 1.9.3 on Huzzah Feather.
Using the Micropython ht16k33_seg.py library,
which calls the ht16k33_matrix.py library module
to create an HT16K33 object
as the base class of the Seg14x4 object.

Looks like the hk16k33_matrix.py module was upgraded to use the ESP8266 framebuf object
as the backing store for the matrix-based instantiations.
Unfortunately instantition of the Seg14x4 object yields the following error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ht16k33_matrix.py", line 18, in __init__
AttributeError: 'Seg14x4' object has no attribute 'WIDTH'

The other three will likely fail too as they are undefined.

Looks like the attributes which came along with the framebuf object are not initialized by the code
which creates "segment" objects. I note that the LED Matrix objects in the library do have WIDTH,
HEIGHT, FORMAT, and FB_BPP values for their initialization.

Looks like the libraries need to be reconciled and fixed up (or I am really missing something)

Thanks for your help!

Cheers,
Ted Gill

tedgill
 
Posts: 3
Joined: Wed Feb 29, 2012 2:10 am

Re: Micropython HT16K33 library problem

by andrhamm on Tue Jan 09, 2018 3:33 pm

I'm also having this issue

andrhamm
 
Posts: 11
Joined: Fri Dec 08, 2017 12:05 pm

Please be positive and constructive with your questions and comments.