#include "hardware_dependent.h"
void setup() {
// put your setup code here, to run once:
init_port();
}
void loop() {
// put your main code here, to run repeatedly:
volatile int x;
volatile int y;
volatile long i;
x=input();
if((x&0x04)==0x04)
{
y=0b00000010; //1st LED
output(y);
for (i=0;i<600000;i++);
y=0b00000100; //2nd LED
output(y);
for (i=0;i<600000;i++);
y=0b00100000; //5th LED
output(y);
for (i=0;i<600000;i++);
y=0b01000000; //6th LED
output(y);
for (i=0;i<600000;i++);
}
}