-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: drivers: display: distinguish mono pixel format
In exceptional cases, monochrome displays can deviate from the general interpretation (PIXEL_FORMAT_MONO01) of a logical 1 as pixel on (white) and 0 as pixel off (black) and instead set the capability to PIXEL_FORMAT_MONO10. This small but significant difference has been ignored so far, resulting in an inverse display for those displays. In order to be technically correct here, the buffers for a "white" background should be set to 0 instead of 1 and for "black" to 1 instead of 0. Signed-off-by: Stephan Linz <linz@li-pro.net>
- Loading branch information
1 parent
e462656
commit 2fdea6b
Showing
1 changed file
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters