//***************************************************************************************** //lcd.c extern uint16_t writetime = 5;//Zeit in ms für Write-Funktion void write_lcd(char Data,char RS)//Zahl oder String //RS = 0 Controlregister //RS = 1 Dataregister { //command or data? if (RS == 0) { REGSELPORT &=~ (1<>4); //Write Nibbel MSB enable_lcd(); LCDDATAPORT = (LCDDATAPORT&0xF0) + (Data&0x0F); //Write Nibbel LSB enable_lcd(); _delay_ms(writetime); //wait till LCD ready again } //***************************************************************************************** //main.c extern uint16_t writetime;//Zeit in ms zw. Zeichen für die Write_Lcd_Funktion main { : write_lcd(0x07,0);writetime = 150;//Scrollen und aller 150ms Zeichen raus : }