summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hinch <peterhinch@users.noreply.github.com>2020-02-09 16:07:39 +0000
committerDamien George <damien.p.george@gmail.com>2020-02-10 23:04:15 +1100
commit88cbfd791a06a405b05a9262e6d7ab6fb73ade57 (patch)
tree9737a9ff7aca598d9a8f8c27440a1731ac44150a
parentce40abcf21926b35da6c7255215c5062ac2be521 (diff)
docs/library: Fix framebuf monochrome 1-bit modes, swapping HLSB/HMSB.
This fix can be demonstrated by the following: b = bytearray(32) f = framebuf.FrameBuffer(b, 32, 8, framebuf.MONO_HLSB) f.pixel(0, 0, 1) print('MONO_HLSB', hex(b[0])) b = bytearray(32) f = framebuf.FrameBuffer(b, 32, 8, framebuf.MONO_HMSB) f.pixel(0, 0, 1) print('MONO_HMSB', hex(b[0])) Outcome: MONO_HLSB 0x80 MONO_HMSB 0x1
-rw-r--r--docs/library/framebuf.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/library/framebuf.rst b/docs/library/framebuf.rst
index 43ff0b6e1..0073ba708 100644
--- a/docs/library/framebuf.rst
+++ b/docs/library/framebuf.rst
@@ -130,7 +130,7 @@ Constants
Monochrome (1-bit) color format
This defines a mapping where the bits in a byte are horizontally mapped.
- Each byte occupies 8 horizontal pixels with bit 0 being the leftmost.
+ Each byte occupies 8 horizontal pixels with bit 7 being the leftmost.
Subsequent bytes appear at successive horizontal locations until the
rightmost edge is reached. Further bytes are rendered on the next row, one
pixel lower.
@@ -139,7 +139,7 @@ Constants
Monochrome (1-bit) color format
This defines a mapping where the bits in a byte are horizontally mapped.
- Each byte occupies 8 horizontal pixels with bit 7 being the leftmost.
+ Each byte occupies 8 horizontal pixels with bit 0 being the leftmost.
Subsequent bytes appear at successive horizontal locations until the
rightmost edge is reached. Further bytes are rendered on the next row, one
pixel lower.