#define F_CPU 16000000L //Clock frequency

#include <avr/io.h>
#include <util/delay.h>

int main (void){
	DDRB = 0b00000111; //Setting PB0 - PB2 as output
	
	// The while loop is equivalent to the loop() in arduino
	while(1){
		
		for(int i = 0b00000001; i<=4;= i<<=1)
		{
			PORTB = i;//setting the three pins of the RGB LED high sequentially
			_delay_ms(1000);
		}

		PORTB = 0b00000111;//white
		_delay_ms(1000);
	} 

	return 1;

}
