Framebuf library incomplete ?
-
Hi,
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 :
import framebuf
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...
Anyone?
Thank you
Amine KHETIM
-
@robert-hh Working !
Thank you 😊
-
@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.