#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;
volatile long j;
x=input();
if((x&0x08)==0x08)
{
while(1)
{
y=0b00000001;
for (j=0;j<8;j++)
{
output(y);
for (i=0;i<600000;i++);
y=y<<1;
}
}
}
}