[an error occurred while processing this directive]
|
void print_hexbyte(unsigned char i)
{
unsigned char h, l;
static unsigned char x;
h = i & 0xF0; // High nibble
h = h>>4;
h = h + '0';
if (h > '9') h = h + 7;
l = (i & 0x0F)+'0'; // Low nibble
if (l > '9') l = l + 7;
gotoxy(x,1);
lcd_write_data(h);
lcd_write_data(l);
x = x + 3;
if (x>14)
{
x = 0;
// lcd_command(0x01); // clear LCD
}
}
E-mail: info@telesys.ru