PDA

View Full Version : hepl me


haneishun
24-07-2010, 11:47 PM
em moi hoc pic ai co the giup em phan code : hien thi so thuc tren LCD. VD:hien thi so 456,7

haneishun
26-07-2011, 01:33 AM
void lcd_put_int(int16 num){
int16 temp;
unsigned char i = 0, c[5];????
temp = num;
if (temp != 0) {
while(temp){
c[i++] = temp%10; ????
temp /= 10;??????
}
while(i) lcd_putc(c[--i] + '0');??????
}
else lcd_putc('0');??????
}

ai co the giai thick tung cho em danh dau ???? dc ko a.em moi hoc len chua hieu ro cho nay lam