thannara123
Advanced Member level 5
- Joined
- Jan 7, 2010
- Messages
- 1,602
- Helped
- 122
- Reputation
- 244
- Reaction score
- 116
- Trophy points
- 1,353
- Activity points
- 10,625
hello experts ,
I want to display "*" in the following codes - for memory reduction please help me
here the string function writes only star "*" . then how to change it
please help me.
thanks
I want to display "*" in the following codes - for memory reduction please help me
Code:
switch (keyCode) //generating key characeter to display on LCD
{
case (11):
string("1"); [COLOR=#ff0000] // want change string(*g); *g contain star "*"[/COLOR]
dis_cmd(k++);
key[x]=1;
x++;
pos++;
break;
case (10):
//dis_cmd(k++);
string("2"); [COLOR=#ff0000]// want change string(*g); *g contain star "*" [/COLOR]
dis_cmd(k++);
key[x]=2;
x++;
pos++;
break;
case (9):
string("3");
dis_cmd(k++);
key[x]=3;
x++;
pos++;
break;
case (8):
string("4"); [COLOR=#ff0000]// want change string(*g); *g contain star "*"[/COLOR]
dis_cmd(k++);
key[x]=4;
x++;
pos++;
break;
case (7):
//dis_cmd(k++);
string("5"); [COLOR=#ff0000]// want change string(*g); *g contain star "*"[/COLOR]
dis_cmd(k++);
key[x]=5;
x++;
pos++;
break;
case (6):
string("6"); [COLOR=#ff0000]// want change string(*g); *g contain star "*"[/COLOR]
dis_cmd(k++);
key[x]=6;
x++;
pos++;
break;
case (5):
string("7"); [COLOR=#ff0000]// want change string(*g); *g contain star "*"[/COLOR]
dis_cmd(k++);
key[x]=7;
x++;
pos++;
break;
case (4):
string("8");
dis_cmd(k++);
key[x]=8;
x++;
pos++;
break;
case (3):
string("9");
dis_cmd(k++);
key[x]=9;
x++;
pos++;
break;
case (2):
//string("*");
//dis_cmd(k++);
//key[x]=0;
//x++;
//pos++;
break;
case (1):
string("0");
dis_cmd(k++);
key[x]=0;
x++;
pos++;
break;
//case (12):
//break;
//default: ;
//loop: ;
}
_delay_loop_2(300);
here the string function writes only star "*" . then how to change it
please help me.
thanks