標題: 求助,數(shù)碼管顯示程序編譯錯誤 [打印本頁]

作者: aasdqwe001    時間: 2020-2-21 13:33
標題: 求助,數(shù)碼管顯示程序編譯錯誤
#include"reg52.h"
typedef unsigned char u8;
typedef unsigned int u16;

sbit LSA=P2^2;
sbit LSB=P2^3;
sbit LSC=P2^4;

u8 code smgduan[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07
                    0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};


void main()
{
        LSA=0;
        LSB=0;
        LSC=0;
        P0=smgduan[0];
        while(1);
}
*********************************
靜態(tài)數(shù)碼管顯示,編譯后顯示while(1);附近有語法錯誤,




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1