[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Brain cramp converting a hex value to decimal



I'd like the decimal value.

On Sun, Sep 14, 2008 at 12:52 PM, DJ Delorie <dj@xxxxxxxxxxx> wrote:

Do you want a hex display on your LCD or decimal?

You could do this for fixed-size hex:

for (i=3; i>=0; i--)
 lcd_digit ((i_temp >> i) & 0x0f);

Or sprintf(buf, "%04x", i_temp);


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user