#include <avr/io.h>
int main(void)
{
//pin설정
// led(pe0-7) output, sw9pb0-7) input
DDRE = 0xFF;
DDRD = 0x00;
while(1) {
PORTE = PIND;
}
return 0;
}
'AVR' 카테고리의 다른 글
interruptClock (0) | 2015.04.13 |
---|---|
interruptTimer (0) | 2015.04.13 |
interruptStopWatch (0) | 2015.04.13 |
Interrupt (0) | 2015.04.10 |
fnd (0) | 2015.04.10 |
switch - led . on off (0) | 2015.04.10 |
LED (0) | 2015.04.10 |
Getting strat (0) | 2015.04.10 |