Framebuf library incomplete ?
Since 1.6.9.b1, Pycom firmware added framebuf support. I've got LoPy on PySense shield under 1.18.1.r7
I try to get working a library for e-ink display (https://github.com/mcauser/micropython-waveshare-epaper)
In this library, they use framebuf as micropython documentation (http://docs.micropython.org/en/v1.9.4/esp8266/library/framebuf.html).
Here's the code :
buf = bytearray(128 * 296 // 8)
fb = framebuf.FrameBuffer(buf, 128, 296, framebuf.MONO_HLSB)
I don't understand why, but I get this error :
AttributeError: 'module' object has no attribute 'MONO_HLSB'
MONO_HLSB is supposed to be a native framebuf constant's...
@robert-hh Working !
Thank you 😊
robert-hh last edited by
@echobravovictor The micropython variants differ a little bit, and the PyCom variant is frozen at an older state.
The constant you need is called MVLSB.