void setup()
{
volatile long i,j;
unsigned char switches;
volatile char *dirf,*outf;
volatile char *dirk,*ink;
dirf=0x30; outf=0x31;
dirk=0x108; ink=0x106;
*dirf=0xFF; *dirk=0x00;
while(1)
{
switches=*ink;
if((switches & 0xC9) == 0xC9)
{
*outf=128;
for(i=1;i<=4000000;i++);
}
else*outf=0x00;
}
}
void loop()
{
}