#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&0x02)==0x02)
{
while(1)
{
y=0xFF;
output(y);
for (i=0;i<600000;i++);
y=0x00;
output(y);
for (i=0;i<600000;i++);
}
}
}