PIC Vietnam

PIC Vietnam (http://www.picvietnam.com/forum/index.php)
-   Đóng góp ý kiến (http://www.picvietnam.com/forum/forumdisplay.php?f=6)
-   -   hepl me (http://www.picvietnam.com/forum/showthread.php?t=6731)

haneishun 24-07-2010 11:47 PM

hepl me
 
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


Múi giờ GMT. Hiện tại là 10:42 AM.

Tên diễn đàn: vBulletin Version 3.8.11
Được sáng lập bởi Đoàn Hiệp.
Copyright © PIC Vietnam