Closed crouse12 closed 3 years ago
Hi @crouse12,
You can build a version of MicroPython with the framebuf module included. Hopefully this steps should be relatively easy:
#define MICROPY_PY_FRAMEBUF (1)
somewhere inside src/codal_port/mpconfigport.h
framebuf
module should now be available 🎉 Alternatively there is also this pure Python version available: https://github.com/adafruit/Adafruit_CircuitPython_framebuf
Could you tell me how to put this new version of micropython into pythoneditor? I need to generate hex file for microbit v2.
You can replace the microbit-micropython-v2.hex
file in https://github.com/bbcmicrobit/PythonEditor/tree/master/micropython.
You can also send files to the micro:bit from your computer with https://github.com/ntoll/microfs.
I'll close this issue as resolved, but feel free to reopen if you have any questions in this area!
ESP32 and Esp8266 have a library, called framebuf. Thus, they can show string or draw a picture on oled or Max7219. However, I found that microbit v2 does not have this library. Can you add it?