Merge pull request #11 from Tamarinen/defade-0-1

Prevent bleaching of colors 0 and 1 by colors 2 and 3
master
Zvonimir Haramustek 2022-02-10 11:27:29 +01:00 committed by GitHub
commit 6c18b42af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 8 deletions

View File

@ -20,14 +20,15 @@ D_COLS = const(1200)
# Order of 4 values in each tuple: blk, dk-grey, light-grey, white
# Meaning of values: 0=dischg, 1=black, 2=white, 3=skip
# Uses "colors" 0 (black), 3, 5, and 7 (white) from 3-bit waveforms below
WAVE_2B = ( # For Inkplate 10, colors 0, 3, 5-tweaked, and 7 from arduino driver
(0, 1, 0, 0), # (arduino color 5 was too light and color 4 too dark)
(0, 2, 0, 0),
(0, 2, 0, 2),
(0, 1, 2, 2),
(0, 2, 1, 2),
(0, 2, 1, 2),
(1, 1, 2, 2),
WAVE_2B = ( # original mpy driver for Ink 6, differs from arduino driver below
(1, 1, 2, 0),
(1, 1, 1, 0),
(0, 2, 1, 0),
(1, 2, 1, 0),
(0, 0, 2, 2),
(1, 1, 0, 0),
(0, 0, 0, 0)
)
# Ink10 WAVEFORM3BIT from arduino driver
# {{0,0,0,0,0,0,1,0},{0,0,2,2,2,1,1,0},{0,2,1,1,2,2,1,0},{1,2,2,1,2,2,1,0},