1)
#include<avr/io.h>2)
#include<util/delay.h>
#include<compat/deprecated.h>
void main()
{
DDRB=0x09;
DDRD=0x30;
PORTB=0x00;
PORTD=0x20;
}
#include<avr/io.h>
#include<util/delay.h>
#include<compat/deprecated.h>
void main()
{
DDRB=0x0A;
DDRD=0x30;
_delay_ms(1000);
PORTB=0x00;
PORTD=0x20;
_delay_ms(1000);
PORTB=0x20;
PORTD=0x00;
_delay_ms(1000);
/*
while(1)
{
PORTB=0x20;
PORTD=0x00;
_delay_ms(5000);
PORTB=0x00;
PORTD=0x20;
_delay_ms(5000);
PORTB=0x20;
PORTD=0x00;
_delay_ms(5000);
PORTB=0x00;
PORTD=0x20;
_delay_ms(5000);
PORTB=0x20;
PORTD=0x00;
_delay_ms(5000);
PORTB=0x00;
PORTD=0x20;
_delay_ms(5000);
}
*/
}