int main(void) { DDRD = 0x0f; /* Pin D0 als Eingang */ PORTD |= 0x0f; /* Pull Up von PIN D0 aktivieren */ uint8_t Tasten = 0x0F; DDRC = 0xFF; PORTC = 0xFF; /* LCD INIT*/ DDRD = 0xF0; // PD4:7 digital outputs lcd_initialize(LCD_FUNCTION_8x2, LCD_CMD_ENTRY_INC, LCD_CMD_ON); int i; while(1) { Tasten = (PIND & 0x0F); lcd_move_cursor(LCD_LINE_1,0); _delay_ms(20); LOG_str("LABORZENTRIFUGE"); lcd_move_cursor(LCD_LINE_2,1); _delay_ms(20); LOG_str("Profil_1"); lcd_move_cursor(LCD_LINE_3,1); _delay_ms(20); LOG_str("Profil_2"); lcd_move_cursor(LCD_LINE_4,1); _delay_ms(20); LOG_str("Profil_3"); PORTC = Tasten; if (Tasten==14) { lcd_move_cursor(LCD_LINE_3,0); _delay_ms(20); LOG_str(">"); } if (Tasten==11) { lcd_move_cursor(LCD_LINE_3,9); _delay_ms(20); LOG_str("prof"); } if (Tasten==7) { lcd_move_cursor(LCD_LINE_4,9); _delay_ms(20); LOG_str("hyyy"); }