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:
mpremote mip install github:smittytone/HT16K33-Python from host machine shell
mip.install('github:smittytone/HT16K33-Python') from a MicroPython board connected to internet with a configured network
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.
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.
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 frommpremote
. Thispackage.json
addsmip
compatibility from a GH source.If it's merged, you'll be able to just use the following commands:
mpremote mip install github:smittytone/HT16K33-Python
from host machine shellmip.install('github:smittytone/HT16K33-Python')
from a MicroPython board connected to internet with a configured networkmip
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 modesince it's in my fork, you can try the following on a MicroPython board running a recent firmware with
mip
support.Hope you'll want to merge this one in 😄
ciao.ubi