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 -
@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. -
@robert-hh Working !
Thank you 😊
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login