/** * 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)); }
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 (;;) ; }
void debug (const char *string) { lcd_send_command (DD_RAM_ADDR); /* LCD set first row */ lcd_send_string (string); }