Closed dhalbert closed 7 years ago
Thanks for linking your implementation! (it's cool to see other's implementations). I'll also look into using these methods for reducing RAM usage (without a .mpy, the .py is too large to fit on boards, reduced RAM would help tremendously)
http://circuitpython.readthedocs.io/en/latest/docs/reference/constrained.html#execution-phase talks about const()
, etc.. And see other stuff on that page as well.
FYI, you may be interested in https://github.com/dhalbert/CircuitPython_LCD, for char LCDs, with the interface factored out. Currently the only interface I provide is for PCF8574 backpacks (not compatible with Adafruit backpack). I did some things to reduce RAM usage as well (const(), underscored constant names, etc.)