I'm working on this code for an lcd display and when compiled presents the following errors:
- "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_LcdConsts.mcl" "__Lib_Lcd.mcl"
0 122 Compilation Started lcd_8051.c
45 123 Compiled Successfully lcd_8051.c
0 127 All files Compiled in 78 ms
22 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
33 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
37 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
39 438 Call signature does not match the function definition signature 'Delay_50us' __Lib_Lcd.c
83 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
84 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
85 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
96 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
98 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
101 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
103 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
106 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
108 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
114 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
116 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
125 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
130 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
132 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
138 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
142 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
144 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
149 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
153 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
155 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
160 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
168 438 Call signature does not match the function definition signature 'Delay_1us' __Lib_Lcd.c
171 438 Call signature does not match the function definition signature 'Delay_5500us' __Lib_Lcd.c
0 102 Finished (with errors): 14 jun 2016, 13:44:03 lcd_8051.mcp51
This is the code:
Code: Select all
//configuracao dos ports
sbit LCD_RS at P2_2_bit;
sbit LCD_EN at P2_3_bit;
sbit LCD_D4 at P2_4_bit;
sbit LCD_D5 at P2_5_bit;
sbit LCD_D6 at P2_6_bit;
sbit LCD_D7 at P2_7_bit;
char txt1[] = "***************";
char txt2[] = "***************" ;
char txt3[] = "******************************";
char txt4[] = "******************************";
char txt5[] = "***************";
#define tempoI Delay_ms(100)
#define tempoII Delay_ms(5000)
#define tshift Delay_ms(800)
void main() {
signed int cont = 0;
Lcd_Init();
Lcd_Cmd(_LCD_CLEAR);
Lcd_Cmd(_LCD_CURSOR_OFF);
Lcd_Cmd(_LCD_CURSOR_OFF);
tempoI;
while(1){
Lcd_Out(1,1,txt1);
Lcd_Out(2,1,txt2);
tempoII;
Lcd_Out(1,1,txt3);
Lcd_Out(2,1,txt4);
for(cont=0;cont<=16;cont++){
Lcd_Cmd(_LCD_SHIFT_RIGHT);
tshift;
}
Lcd_Out(1,1,txt1);
Lcd_Out(2,1,txt5);
tempoII;
}
}