Home > other >  LCD code how to solve this wrong, ask bosses help MAIN. C (6) : error C247: non - address/- constant
LCD code how to solve this wrong, ask bosses help MAIN. C (6) : error C247: non - address/- constant

Time:09-16

# include "LCD. H"
# include "reg52. H"

Void delaytim (uint c)
{
Uchar a, b;
for(; C> 0; C -)
{
For (b=199; B> 0; B -)
{
For (a=1; a> 0; A -);

}
}

}
Void lcd1602_writecomd (uchar com)
{
Lcd_E=0;
Lcd_RM=0;
Lcd_RS=0;
lcd11602_DATA=https://bbs.csdn.net/topics/com;
Delaytim (1);
Lcd_E=1;
Delaytim (5);
Lcd_E=0;

}
Void lcd1602_writeDate (uchar date)
{

Lcd_E=0;
Lcd_RM=0;
Lcd_RS=1;
lcd11602_DATA=https://bbs.csdn.net/topics/date;
Delaytim (1);
Lcd_E=1;
Delaytim (5);
Lcd_E=0;


}
Void lcd1602_Init ()
{
X38 lcd1602_writecomd (0);
X0c lcd1602_writecomd (0);
Lcd1602_writecomd x06 (0);
Lcd1602_writecomd (0 x01);
Lcd1602_writecomd (0 x80);
}
# include "reg52. H"
# include "LCD. H"
C # include "LCD."
Typedef unsigned int under-16;
typedef unsigned char u8;
Under-16 lCD_FM []="FM: 73.3 MHz";/* this line error */
Under-16 lCD_VOL []="VOL:";
Void main ()
{under-16 I;
Under-16 j;

Lcd1602_Init ();
While (1)
{
Lcd1602_writecomd (0 x80);
for(i=0; I<16. I++)
{
Lcd1602_writeDate (lCD_FM [I]);

}
Xc0 lcd1602_writecomd (0);
For (j=0; j<16. J++)
{
Lcd1602_writeDate (lCD_VOL [j]);

}

}

}

CodePudding user response:

You this error: no assigned address or no initialization, a closer look at that error

CodePudding user response:

={F, M, 7, 3,., 3 M, H, z}
Let it be

CodePudding user response:

 
Under-16 lCD_FM []="FM: 73.3 MHz";/* this line error */
Under-16 lCD_VOL []="VOL:";

Change
 
U8 lCD_FM []="FM: 73.3 MHz";/* this line error */
U8 lCD_VOL []="VOL:";