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