我有一个 AVR 编程案例
case (0xe7): keyPressed=".";
在此期间我想调用一个预定义的函数
switch (keyCode) //generating key characetr to display on LCD
{
case (0xee): keyPressed="1";
b=1;
a=a*10+b;
i=i++;
break;
case (0xed): keyPressed="4";
b=4;
a=a*10+b;
i=i++;
break;
case (0xeb): keyPressed="7";
b=7;
a=a*10+b;
i=i++;
break;
case (0xde): keyPressed="2";
b=2;
a=a*10+b;
i=i++;
break;
case (0xdd): keyPressed="5";
b=5;
a=a*10+b;
i=i++;
break;
case (0xdb): keyPressed="8";
b=8;
a=a*10+b;
i=i++;
break;
case (0xd7): keyPressed="0";
b=0;
a=a*10+b;
i=i++;
break;
case (0xbe): keyPressed="3";
b=3;
a=a*10+b;
i=i++;
break;
case (0xbd): keyPressed="6";
b=6;
a=a*10+b;
i=i++;
break;
case (0xbb): keyPressed="9";
b=9;
a=a*10+b;
i=i++;
break;
}
我如何制作功能?并在我的情况下在主程序中调用它?请指导我我对这一切都很陌生...请帮帮我..