请问,MSP430F149单片机的智能电子秤程序这样写对吗? 5
参考程序#include"map430x14x.h"voidinit(void);//初始化voidyalichuanganqiinit();voidyuchuliini...
参考程序
#include "map430x14x.h"
void init (void);//初始化
void yalichuanganqiinit();
void yuchuliinit();
void chengzhongjijiaiinit();
void Jianpaninit();
void shumaguanxianshiinit ();
void A/Dzhuanhuan();
void BCDmazhuanhuan();
void qingchu();
void qupi();
void leiji();
void duquzhongliang();
void duqudanjia();
void jisuanjine();
void jianpanfenxi();
void xianshizhongliang();
void xianshidanjia();
void xianshijine();
void yalichuanganqiinit()
{
}
void yuchuliinit()
{
}
void chengzhongjijiaiinit()
{
}
void Jianpaninit()
{
}
void shumaguanxianshiinit ()
{
}
void A/Dzhuanhuan()
{
}
void BCDmazhuanhuan()
{
}
void qingchu()
{
}
void qupi()
{
}
void leiji()
{
}
void duquzhongliang()
{
}
void duqudanjia()
{
}
void jisuanjine()
{
}
void jianpanfenxi()
{
}
void xianshizhongliang()
{
}
Void xianshidanjia()
{
}
void xianshijine()
{
}
void main()
{
init();
while(1)
{
yalichuanganqi ();
yuchuli ();
chengzhongjijia();
Jianpan();
shumaguanxianshi ();
}
}
void yalichuanganqi ()
{
A/Dzhuanhuan();
BCDmazhuanhuan();
}
void yuchuli ()
{
qingchu();
qupi();
leiji();
}
void chengzhongjijia()
{
duquzhongliang();
duqudanjia();
jisuanjine();
}
void Jianpan()
{
jianpanfenxi();
}
void shumaguanxianshi ()
{
xianshizhongliang();
xianshidanjia();
xianshijine();
} 展开
#include "map430x14x.h"
void init (void);//初始化
void yalichuanganqiinit();
void yuchuliinit();
void chengzhongjijiaiinit();
void Jianpaninit();
void shumaguanxianshiinit ();
void A/Dzhuanhuan();
void BCDmazhuanhuan();
void qingchu();
void qupi();
void leiji();
void duquzhongliang();
void duqudanjia();
void jisuanjine();
void jianpanfenxi();
void xianshizhongliang();
void xianshidanjia();
void xianshijine();
void yalichuanganqiinit()
{
}
void yuchuliinit()
{
}
void chengzhongjijiaiinit()
{
}
void Jianpaninit()
{
}
void shumaguanxianshiinit ()
{
}
void A/Dzhuanhuan()
{
}
void BCDmazhuanhuan()
{
}
void qingchu()
{
}
void qupi()
{
}
void leiji()
{
}
void duquzhongliang()
{
}
void duqudanjia()
{
}
void jisuanjine()
{
}
void jianpanfenxi()
{
}
void xianshizhongliang()
{
}
Void xianshidanjia()
{
}
void xianshijine()
{
}
void main()
{
init();
while(1)
{
yalichuanganqi ();
yuchuli ();
chengzhongjijia();
Jianpan();
shumaguanxianshi ();
}
}
void yalichuanganqi ()
{
A/Dzhuanhuan();
BCDmazhuanhuan();
}
void yuchuli ()
{
qingchu();
qupi();
leiji();
}
void chengzhongjijia()
{
duquzhongliang();
duqudanjia();
jisuanjine();
}
void Jianpan()
{
jianpanfenxi();
}
void shumaguanxianshi ()
{
xianshizhongliang();
xianshidanjia();
xianshijine();
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询