danke für die hilfe uwegw

stimmt das so? oder bin ich zumindest auf dem richtigen weg
Code:
#include <stdio.h>
#include <avr/io.h>
#include <avr/wdt.h>
#include <util/delay.h>
#include <math.h>
#include <avr/pgmspace.h>
#define LCD_DDR DDRB


 
void delay_ms(unsigned int period);
#include <glcd-Display3000-211.h>
extern const prog_uint8_t Font1[], Font2[];


#include "bild1.h"
#include "Bild2.h"
#include "Bild3.h"
extern const prog_uint16_t  *Bitmap;



int main(void)


{
    
	LCD_Init();
	delay_ms(1000);
	DDRD = 0;
	PORTD |= (1 << PD1) | (1 << PD6) | (1 << PD3) ; 
    wdt_enable(WDTO_1S); 
	
	while(1)
	
	{
	   
	     if (PIND & (1 <<PD3))
        {
		  
             wdt_reset();
			 
		}
		
		
		
	
		
		if (PIND & (1 <<PD1))
        {
              
			  Orientation = Portrait180;
		      LCD_Bitmap_256high(0, 0, 131, 175, Bild1, Table_Bild1, true);
              delay_ms(10);
			  
	    } else 
		
		{
		
		      Orientation = Portrait180;
		      LCD_Bitmap_256high(0, 0, 131, 175, Bild2, Table_Bild2, true);
              delay_ms(5000);
			  
		} 
		
		if (PIND & (1 <<PD6))
        {
              
			  Orientation = Portrait180;
		      LCD_Bitmap_256high(0, 0, 131, 175, Bild1, Table_Bild1, true);
              delay_ms(10);
			  
	    } else 
		
		{
		
		      Orientation = Portrait180;
		      LCD_Bitmap_256high(0, 0, 131, 175, Bild3, Table_Bild3, true);
              delay_ms(5000);
			  
		} 
	}	
	return 0; 
}