#include<avr/io.h>#include<string.h>#include<util/delay.h>#include"lcd_lib.h"#define LINE 16
char*str="Postapokaliptichesky1232323123";char*pstr;charbuf[LINE+1];voidlcd_clear(){LCDsendCommand(0x01);}voidlcd_zero_coord(){chary=0;charx=0;LCDsendCommand(0x80|((0x40*y)+x));}voidlcd_data(charbyte){LCDsendChar(byte);}voidlcd_str(char*s){while(*s!='\0')lcd_data(*(s++));}intmain(void){LCDinit();lcd_clear();while(1){intlen=strlen(str)+LINE;for(inti=0;i<len;++i){lcd_clear();lcd_zero_coord();strcpy(buf,str);intspaces=LINE-i;buf[i]='\0';pstr=buf;if(spaces>0)for(ints=0;s<spaces;++s)lcd_data(' ');elsepstr+=i-LINE;lcd_str(pstr);_delay_ms(100);}}}