void findway(void) {
switch(PORTA)
{
case 0x40:k=-4,l=30,PORTB=0XFD;break; //-6
case 0x20:k=-2,l=20,PORTB=0XFB;break; //-4
case 0x10:k=-1,l=10,PORTB=0XF7;break; //-2
case 0x08:k=0,l=0,PORTB=0XEF;break; //0
case 0x04:k=1,l=10,PORTB=0XDF;break; //2
case 0x02:k=2,l=20,PORTB=0XBF;break; //4
case 0x01:k=4,l=30,PORTB=0X7F;break; //6
default: k=k,PORTB=0X00;
}
}