Help
Advanced Member level 2
Hi,
Anyone can tell me the statement bellow:
char Key = KEYPAD_...,z;
The code is like that....
Thanks...
Anyone can tell me the statement bellow:
char Key = KEYPAD_...,z;
The code is like that....
Code:
bit KEYPAD_Scan(char* const pKey)
{
char Key = KEYPAD_NO_NEW_DATA,z;
if(K0 == 0) {Key = '0';}
if(K1 == 0) {Key = '1';}
if(K2 == 0) {Key = '2';}
if(K3 == 0) {Key = '3';}
if(K4 == 0) {Key = '4';}
if(K5 == 0) {Key = '5';}
if(K6 == 0) {Key = '6';}
if(K7 == 0) {Key = '7';}
z = *pKey;
.
.
.
Thanks...