//This will show you all the numbering of the ports and how to turn them on and off
//for aproximately a second

//##########select the speed of your AtTiny##############

//#define F_CPU 1000000UL  // 1 MHz

#define F_CPU 8000000UL  // 8 MHz

//#define F_CPU 12000000UL  // 12 MHz
//#define F_CPU 16000000UL  // 16 MHz
//#define F_CPU 20000000UL  // 20 MHz

//#######################################################

#include <avr/io.h>
#include <util/delay.h>

int main (void)
{

	DDRB = 0xFF;// set PORTB for output


	while (1) //Loop forever
	{
	
		PORTB = 0b00000001; 	// set PORTB 0 high
		_delay_ms(1000);		//wait a second
		PORTB = 0b00000010; 	// set PORTB 1 high
		_delay_ms(1000);		//wait a second
		PORTB = 0b00000100; 	// set PORTB 2 high
		_delay_ms(1000);		//wait a second
		PORTB = 0b00001000; 	// set PORTB 3 high
		_delay_ms(1000);		//wait a second
		PORTB = 0b00010000; 	// set PORTB 4 high
		_delay_ms(1000);		//wait a second


	}
	return 0;
}

