void LCD_init()
{
_delay_ms(40);//
DDR_DATA |= 0xF0;//ïîðòû íà
PORT_DATA |= 0xF0;//âûõîä
DDR_SIG |= (ON<<E)|(ON<<RW)|(ON<<RS);//óïðàâëÿþùèå ïîðòû
PORT_SIG |= (ON<<E)|(ON<<RS);//íà âûõîä
PORT_SIG &= ~(ON<<RW);//ïîðò ÷òåíèÿ/çàïèñè íà íà çàïèñü
_delay_ms(40);
LCD_write(BUS_LINE,RS_COM);//2 ëèíèè äàííûõ, 4 áèòà øèíà
LCD_write(0x01,RS_COM);//î÷èñòêà ýêðàíà
LCD_write(0x06,RS_COM);//èíêðåìåíò àäðåñà ýêðàí íå äâèæåòñÿ
LCD_write(0x0C,RS_COM);//âêëþ÷èòü äèñïëåé
}
[/Spoiler]