msp 430 五线键盘 led显示include #define uint unsigned int#define uchar unsigned charvoid xianshi(uint temp);uchar keyboard();void delay(uint z);//数码管7位段码:0--fuchar table[16] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07, 0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};//记录显示位数的全局变量uchar cnt = 0;uint temp=0;/********************主函数********************/void main(void){ WDTCTL = WDTPW + WDTHOLD; //关闭看门狗 //P2SEL = 0x00; P2DIR = 0xff; P2OUT = 0x07; P2DIR = 0xe7;
飞网下载站,免费下载共享资料,内容涉及教育资源、专业资料、IT资源、娱乐生活、经济管理、办公文书、游戏资料等。