#include #include #define F_CPU 1000000UL #include #define LCD_RS 0 //MCU pin connected to LCD RS #define LCD_RW 1 //MCU pin connected to LCD R/W #define LCD_E 2 //MCU pin connected to LCD E #define LCD_D4 4 //MCU pin connected to LCD D3 #define LCD_D5 5 //MCU pin connected to LCD D4 #define LCD_D6 6 //MCU pin connected to LCD D5 #define LCD_D7 7 //MCU pin connected to LCD D6 #define LDP PORTD //MCU port connected to LCD data pins #define LCP PORTD //MCU port connected to LCD control pins #define LDDR DDRD //MCU direction register for port connected to LCD data pins #define LCDR DDRD //MCU direction register for port connected to LCD control pins #define LCD_CLR 0 //DB0: clear display #define LCD_HOME 1 //DB1: return to home position char text[] PROGMEM = "Ahoj C\n"; //text, který bude udržován jen v pamiti FLASH void LCD_send_char(unsigned char ch) { //Sends Char to LCD LDP = (ch&0xf0); LCP |= 1<