소스코드 좀 봐주세요ㅠㅠ
#include <stdio.h>
#include <iom128.h> void delay(unsigned int time)
{
int i,j;
for(i=0;i<time;i++)
for(j=0;j<600;j++);
} void main( void )
{
DDRE &=~(0xff);
//DDRB &=~(0x01);
DDRE |=0xc0;
//DDRB |=0x01;
PORTE = 0x00; while(1)
{
if((PINE & 0x04) == 0)
PORTE ^= 0x40;
delay(600);
}
}
#include <stdio.h>
#include <iom128.h> void delay(unsigned int time)
{
int i,j;
for(i=0;i<time;i++)
for(j=0;j<600;j++);
} void main( void )
{
DDRE &=~(0xff);
//DDRB &=~(0x01);
DDRE |=0xc0;
//DDRB |=0x01;
PORTE = 0x00; while(1)
{
if((PINE & 0x04) == 0)
PORTE ^= 0x40;
delay(600);
}
}