docs/library/framebuf: Add missing module reference in example code.
This commit is contained in:
parent
48f43b77aa
commit
00e7fe8ab1
|
@ -19,7 +19,7 @@ For example::
|
|||
import framebuf
|
||||
|
||||
# FrameBuffer needs 2 bytes for every RGB565 pixel
|
||||
fbuf = FrameBuffer(bytearray(10 * 100 * 2), 10, 100, framebuf.RGB565)
|
||||
fbuf = framebuf.FrameBuffer(bytearray(10 * 100 * 2), 10, 100, framebuf.RGB565)
|
||||
|
||||
fbuf.fill(0)
|
||||
fbuf.text('MicroPython!', 0, 0, 0xffff)
|
||||
|
|
Loading…
Reference in New Issue