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

MIP compatibility: added package.json pointing to smittytone source .py files #12

Closed ubidefeo closed 10 months ago

ubidefeo commented 10 months ago

hi @smittytone

I use this library with my students and we got used to installing some libs using mip both from within the REPL and from mpremote. This package.json adds mip compatibility from a GH source.

If it's merged, you'll be able to just use the following commands:

mip will source the correct files and install them inside the board's /lib so they can easily be imported once they're in the MicroPython PATH.

I had initially tested placing them in the /lib/ht16k33 folder, but this entails changing all the examples and follow dot notation for imports, breaking old code. I have reverted to the simplest installation mode

since it's in my fork, you can try the following on a MicroPython board running a recent firmware with mip support.

import mip
mip.install('github:ubidefeo/HT16K33-Python')

Hope you'll want to merge this one in 😄

ciao.ubi

smittytone commented 10 months ago

This looks good -- and thank you for the PR. I will switch its target to my develop branch, and take a proper look before getting it added in a new release.

ubidefeo commented 10 months ago

thank you 😃