void LCD_writeString(char *string){ uint8_t length = strlen(string); for(uint8_t it = 0; it < length; it++){ if(LCD_x > LCD_x_cnt - 1){ LCD_x = 0; LCD_y++; if(LCD_y > LCD_y_cnt - 1){ LCD_y = 0; LCD_goto(LCD_x, LCD_y); } else{ LCD_goto(LCD_x, LCD_y); } } else if(string[it] == '\n'){ LCD_x = 0; LCD_y++; if(LCD_y > LCD_y_cnt - 1) LCD_y = 0; LCD_goto(LCD_x, LCD_y); continue; } LCD_send_data(string[it]); LCD_x++; } }
void LCD_print(char *string) { unsigned char i=0; while(string[i]!=0) { LCD_send_data(string[i]); i++; } }
/*! * \brief Function send one character to LCD * * \param val data for LCD */ void LCD_putch( uint8_t val ) { LCD_send_data( val ); }