This is the mail archive of the
mailing list for the eCos project.
Re: Running Microwindows on monochrome/grayscale LCD
- From: llandre <r&d2 at dave-tech dot it>
- To: Mr navaneethan krishnan <nkddk at yahoo dot co dot in>
- Cc: ecos-devel at ecos dot sourceware dot org
- Date: Fri, 05 May 2006 15:21:57 +0200
- Subject: Re: Running Microwindows on monochrome/grayscale LCD
- References: <email@example.com>
if I understand correctly you suggest to keep pixtype set to
MWPF_TRUECOLOR555 (or MWPF_TRUECOLOR565) and to use only G component to
paint the pixels, while R and B become just dummies. It it correct? What
about bpp field?
You can try like this
Make R,B value equal to 0 , which will make G as display input for
So Assign r,b=0 in the code and try
*/llandre <firstname.lastname@example.org>/* wrote:
I have to write a couple of Microwindows screen drivers for monochrome
and 4-bpp greyscale LCD panels. As reference I'm looking at
src/drivers/scr_ecos.c but this supports color mode only (RGB 555 and
RGB 565) and, for istance, I can't understand which pixel format I have
to use (MWPF_PIXELVAL, MWPF_PALETTE ...) and if rmask, gmask and bmask
have to be handled.
I'd like to find a driver supporting monochrome or grayscale panels to
use it as starting point. Anybody can provide such an example? Any hint
or advice will be appreciated, too.
DAVE Electronics System House - R&D Department