Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(TRUE)
- {
- R1=1; //Scanning Process
- R2=R3=R4=0;
- if(C1==1)
- {
- while(C1==1);
- return '1';
- }
- if(C2==1)
- {
- while(C2==1);
- return '2';
- }
- if(C3==1)
- {
- while(C3==1);
- return '3';
- }
- R2=1;
- R1=R3=R4=0;
- if(C1==1)
- {
- while(C1==1);
- return '4';
- }
- if(C2==1)
- {
- while(C2==1);
- return '5';
- }
- if(C3==1)
- {
- while(C3==1);
- return '6';
- }
- R3=1;
- R1=R2=R4=0;
- if(C1==1)
- {
- while(C1==1);
- return '7';
- }
- if(C2==1)
- {
- while(C2==1);
- return '8';
- }
- if(C3==1)
- {
- while(C3==1);
- return '9';
- }
- R4=1;
- R1=R2=R3=0;
- if(C1==1)
- {
- while(C1==1);
- return '*';
- }
- if(C2==1)
- {
- while(C2==1);
- return '0';
- }
- if(C3==1)
- {
- while(C3==1);
- return '#';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement