//#include <avr/io.h>
//#include <stdbool.h>
#define Button3State 3
#define Button4State 4

int startup_delay = 500;
int UpTime = 500;
int DownTime = 1000;

// setup function runs once after reset button pressed or powered on
void setup() {
  pinMode(PB0, OUTPUT);
  pinMode(PB1, OUTPUT);
  pinMode(PB2, OUTPUT);
  pinMode(PB3, INPUT_PULLUP);
  pinMode(PB4, INPUT_PULLUP);
  delay(startup_delay);//wait some time
}

//loop function runs over and over forever
void loop() {
  //if (! (PINB & (1 << PB3))) 
  while (digitalRead(Button3State));
  while (!digitalRead(Button3State));
  //{
   //write to PORTB register to set the LED state to LOW
  
  for(char i = 1; i<=10; i++) digitalWrite(i,!digitalRead(i));
   digitalWrite(PB0, HIGH); //turn led on
   delay(UpTime);
   digitalWrite(PB0, LOW); //turn led off
   delay(DownTime);

  //}

  /*//else {
   if (! (PINB & (1 << PB4))) {
   digitalWrite(PB2, HIGH); //turn led on
   delay(UpTime);
   digitalWrite(PB2, LOW); //turn led off
   delay(UpTime);
  //  }
  }*/
}
ATTINY8520PU