Ejemplo n.º 1
0
void LCD_write_string_row(const rom char *c) {
    unsigned char i;
    i = 0;
    LCD_pos_xy(0, 2);
    while (*c) {
        LCDChar(*c++);
        i++;
        if (i == 16) {
            LCD_pos_xy(0, 0);
        }
        if (i == 32) {
            LCD_delay_ms(10);
            LCD_pos_xy(0, 2);
            i = 0;
        }
    }
}
Ejemplo n.º 2
0
void LCD_write_char(char c) {
    switch (c) {
        case '\f':
            LCD_send_byte(0, 1);
            break;
        case '\n':
        case '\r':
            LCD_pos_xy(0, 0);
            break;
        default:
            LCD_send_byte(1, c);
    }
}
Ejemplo n.º 3
0
//**************************************************************************
//* Write a character on the display
//**************************************************************************
//* Calling arguments:
//* char c : character to be written
//**************************************************************************
//* Notes :
//* \f clear the display
//* \n and \r return the cursor to line 1 column 0
//**************************************************************************
void LCD_write_char(char c)
{
  switch (c)
	{
	  case '\f' :	
	    LCD_send_byte(0,1);
	    time_delay_ms(5);
	    break;
	  case '\n' :
	  case '\r' :	
	    LCD_pos_xy(0,1);
	    break;
	  case RightShiftCmd :
		LCD_send_byte(0,c);
		break;
	  default:
	    LCD_send_byte(1,c);
   }
}