while ( TRUE )
{
while ( TRUE )
{
if ( GetKey() != 1 )
{
break;
}
if ( GetKey() != 2 )
{
break;
}
if ( GetKey() != 3 )
{
break;
}
if ( GetKey() != 4 )
{
break;
}
output_high ( LED );
delay_ms ( 100 );
output_low ( LED );
}
}
If press code 1234 on keypad ----> LED on 100 Ms
Please advise me too. How I change this code for:
1. if press code 1234 on keypad ----> LED on 100 Ms or
2. if press code 4567 on keypad ----> LED on 100 Ms or
3. if press code 1357 on keypad ----> LED on 100 Ms or
4. if press code 2468on keypad ----> LED1 on 100 Ms or
5. if press code 9876 on keypad ----> LED1 on 100 Ms or
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum