linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Kyle Harris <kharris@nexus-tech.net>
To: Joe Green <jgreen@mvista.com>
Cc: linuxppc-embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: lcd823.c color macros
Date: Mon, 04 Dec 2000 17:39:52 -0500	[thread overview]
Message-ID: <3A2C1D38.F710DCC@nexus-tech.net> (raw)
In-Reply-To: 00120414244202.00900@minotaur.mvista.com


Joe Green wrote:
>
> 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?

Nope, I'm the one being thick. For some reason I looked at this and
thought it was doing

((bit_code) << 1)

and as usual, all I have to do is send an email for me to discover how
something really works. I apologize for the errant email. I'll try to
limit future ones for real issues.

GIFLI (Gee I Feel Like an Idiot), Kyle.

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

      reply	other threads:[~2000-12-04 22:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-04 19:04 lcd823.c color macros Kyle Harris
2000-12-04 22:22 ` Joe Green
2000-12-04 22:39   ` Kyle Harris [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A2C1D38.F710DCC@nexus-tech.net \
    --to=kharris@nexus-tech.net \
    --cc=jgreen@mvista.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).