ATmega128 작은별 불빛 점등하기
ATmega128 작은별 불빛 점등하기 #define F_CPU 16000000UL //CPU frequency = 16Mhz #include #include int main() { DDRA = 0xff; //Start PORTA = 0xff; //도도솔솔라라솔 PORTA = 0x80; _delay_ms(250); PORTA = 0x00; _delay_ms(250); PORTA = 0x80; _delay_ms(250); PORTA = 0x00; _delay_ms(250); PORTA = 0x08; _delay_ms(250); PORTA = 0x00; _delay_ms(250); PORTA = 0x08; _delay_ms(250); PORTA = 0x00; _delay_ms(250); PORTA = 0x0..
2013.03.13