NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Support Forum » lcd.c / void lcd_write_int16(int16_t in) ???

March 07, 2011
by caballeroroberto
caballeroroberto's Avatar

Hi,

I was wondering what the function "void lcd_write_int16(int16_t in)" does exactly. I am confused about the "while (pow>=1)" part and on?

March 08, 2011
by bretm
bretm's Avatar

It converts a 16-bit signed integer into decimal characters and sends them to the display. In other words it displays a number. I don't have the code in front of me to see what "pow" does but it probably starts at 10000 and goes to 1000, 100, 10, and then 1 as it determines each digit.

March 09, 2011
by caballeroroberto
caballeroroberto's Avatar

thank you

Post a Reply

Please log in to post a reply.

Did you know that NerdKits make a great gift? Learn more...