From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1000 invoked by alias); 5 May 2006 13:19:27 -0000 Received: (qmail 991 invoked by uid 22791); 5 May 2006 13:19:27 -0000 X-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,FORGED_RCVD_HELO X-Spam-Check-By: sourceware.org Received: from host46-203.pool8538.interbusiness.it (HELO dave-tech.it) (85.38.203.46) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 05 May 2006 13:19:25 +0000 Received: (qmail 2709 invoked by uid 0); 5 May 2006 13:19:21 -0000 Received: from unknown (HELO ?192.168.0.6?) (192.168.2.253) by 192.168.2.1 with SMTP; 5 May 2006 13:19:21 -0000 Message-ID: <445B5175.8080306@dave-tech.it> Date: Fri, 05 May 2006 13:19:00 -0000 From: llandre User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Mr navaneethan krishnan CC: ecos-devel@ecos.sourceware.org Subject: Re: Running Microwindows on monochrome/grayscale LCD References: <20060505105111.886.qmail@web8315.mail.in.yahoo.com> In-Reply-To: <20060505105111.886.qmail@web8315.mail.in.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2006-05/txt/msg00004.txt.bz2 Hi, 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? > Hi > You can try like this > Make R,B value equal to 0 , which will make G as display input for > monochrome display > So Assign r,b=0 in the code and try > Thanks > Sai > */llandre /* wrote: > > Hi all, > > 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. -- llandre DAVE Electronics System House - R&D Department web: http://www.dave-tech.it email: r&d2@dave-tech.it