Exemplo n.º 1
0
Arquivo: lcd.c Projeto: Grated/Cerebot
/**
 * Clears the LCD then sends the provided strings.
 * @param top_line
 * @param bot_line
 */
void lcd_write(const char* top_line, const char* bot_line)
{
   lcd_clear();
   lcd_send_string(lcd_uart, top_line, strlen(top_line));
   set_cursor_to_line_start(lcd_uart, PMOD_CLS_LINE_2);
   lcd_send_string(lcd_uart, bot_line, strlen(bot_line));
}
Exemplo n.º 2
0
void die (const char *string)
{
    lcd_send_command (CLR_DISP); /* LCD set first row */
    lcd_send_command (DD_RAM_ADDR); /* LCD set first row */
    lcd_send_string (string);
    for (;;) ;
}
Exemplo n.º 3
0
void debug (const char *string)
{
    lcd_send_command (DD_RAM_ADDR); /* LCD set first row */
    lcd_send_string (string);
}