I am working on porting some libraries from Circuitpython and updating the ht16k33 library that currently exists for Micropython. I do not understand why the import statements do not work within the code file but they will work fine in the repl.
I need some assistance here. What am I missing?
Given the included code and library,
These work perfectly in the REPL.
However, these do NOT work within code files.
Code: Select all
from hybotics_ht16k33 import seg
from hybotics_ht16k33 import matrix
from hybotics_ht16k33.matrix import HT16K33
Code: Select all
MPY: soft reboot
Traceback (most recent call last):
File "main.py", line 13, in <module>
File "hybotics_ht16k33/seg.py", line 1, in <module>
ImportError: no module named 'ht16k33'
MicroPython v1.16 on 2021-06-23; TinyPICO with ESP32-PICO-D4
8-Dale