smittytone / HT16K33-Python

Combination Micropython and Circuitpython drivers for various HT16K33-based LEDs
https://smittytone.net/docs/ht16k33.html
MIT License
31 stars 7 forks source link

Support for Cpython/etc in linux eg. Rpi boards/etc #8

Closed mjeveritt closed 1 year ago

mjeveritt commented 1 year ago

I have been developing a project using an ARM board similar to a Raspberry Pi (in fact, it's an Orange pi!!) but there are few (if any) usable libraries for interfacing to the ht16k33 in C-Python (or similar). Whilst the adafruit libraries and ecosystem are comprehensive, they're a bit heavyweight, and not very portable outside of their supported hardware.

Is this something you would be able to consider? It would be great to see similar functions to those exposed by eg. the Arduino library, for writing numbers directly to displays such as the 7-seg. clock, but it's possible I could port some of those myself if desired (they look pretty trivial even in C!) and potentially PR them.

smittytone commented 1 year ago

I could do that, but TBH it would be very low priority. The HT16K33 is not hard to write to: just basic I2C comms. You might want to check out cli2c which can be used on Linux, but especially the segment utility.