/* * led_pattern2.c * * Created: 25/05/2017 18:31:36 * Author: Raj */ #define F_CPU 1000000 #include #include int main(void) { DDRC=0xff; int i=0; while(1) { PORTC=0x00; _delay_ms(500); for(i=0;i<4;i++) { PORTC=0x01<>i)|PORTC; _delay_ms(500); } PORTC=0x00; _delay_ms(500); for(i=0;i<4;i++) { PORTC=0x08>>i; PORTC=(0x10<