Skip to content

Conversation

hgcummings
Copy link

Alters the base class to expect a MicroPython-native machine.I2C object rather than expecting a CircuitPython busio.I2C.

Tested with Raspbery Pi Pico and the Adafruit 14-segment LED HT16K33 backpack.

Example usage:

from machine import I2C, Pin
from ht16k33.segments import Seg14x4

i2c = I2C(0, scl=Pin(17), sda=Pin(16))
display = Seg14x4(i2c)

display.print("TEST")

This is an interface change so I don't necessarily expect the PR to be accepted, but it seems cleaner to avoid the additional dependency.

@mattiasa
Copy link

mattiasa commented Jul 9, 2022

I have also tested this with a Raspberry Pi Pico W and both an Adafruit HT16K33 14-segment backpack and a 16x8 Matrix backpack.

@plmetz
Copy link

plmetz commented Dec 8, 2022

I can also confirm that this is working on the Adafruit_HT16K33 alphanumeric display with backpack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants