This is an old revision of the document!
LCD is used to display information to user. The Home-Lab is equipped with standard 2×16 alphanumeric LCD (datasheet). LCD is connectet to PORTA.
The examples here use Peter Fleury driver.
#include <stdlib.h> #include <avr/io.h> #include <avr/pgmspace.h> #include "lcd.h" /*PS for Distance Lab use: #include <util/lcd.h> #include <util/lcd.c> */ int main(void) { // Initialize display, cursor off lcd_init(LCD_DISP_ON); // Clear display and home cursor lcd_clrscr(); // Put string to display (line 1) with linefeed lcd_puts("LCD Test Line 1\n"); }