#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 int16_t x;
volatile int y;
x=input();
if(x==0b00000001)
{
y=0b00000001;
output(y);
}
else if(x==0b00000010)
{
y=0b00000010;
output(y);
}
else if(x==0b00000100)
{
y=0b00000100;
output(y);
}
else if(x==0b00001000)
{
y=0b00001000;
output(y);
}
else if(x==0b00010000)
{
y=0b00010000;
output(y);
}
else if(x==0b00100000)
{
y=0b00100000;
output(y);
}
else if(x==0b01000000)
{
y=0b01000000;
output(y);
}
else if(x==0b10000000)
{
y=0b10000000;
output(y);
}
else
{
y=0b00000000;
output(y);
}
}