lcd823.c color macros

Joe Green jgreen at mvista.com
Tue Dec 5 09:22:21 EST 2000


On Mon, 04 Dec 2000, Kyle Harris wrote:
> I don't think the following 2 macros (defined in lcd823.c) work for 8
> bit color (bit_code = 3).
>
> #define NBITS(bit_code)     (1 << (bit_code))
> #define NCOLORS(bit_code)   (1 << NBITS(bit_code))

Maybe I'm being thick here, but doesn't NBITS(3) = 8 and
NCOLORS(3) = 256?  What's the problem?

--
Joe Green <jgreen at mvista.com>
MontaVista Software, Inc.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list