extmod/modframebuf: Add 2-bit color format (GS2_HMSB).

This format is used in 2-color LED matrices and in e-ink displays like
SSD1606.
This commit is contained in:
Petr Viktorin
2017-07-15 15:53:47 +02:00
committed by Damien George
parent 36f79523ab
commit 34247465c3
4 changed files with 153 additions and 0 deletions

View File

@@ -148,6 +148,10 @@ Constants
Red Green Blue (16-bit, 5+6+5) color format
.. data:: framebuf.GS2_HMSB
Grayscale (2-bit) color format
.. data:: framebuf.GS4_HMSB
Grayscale (4-bit) color format