venkates2218
Full Member level 6
I'm using LCD,External EEPROM in my project.
1.External EEPROM,LCD,DELAY everything are written under an separate header file for easy access and debugging purpose.
2.External EEPROM,LCD,Delay are included in main file by #include "delay.h" #include "lcd.h" #include "external_eeprom.h"
3.For example:LED1 is blinking based on some conditions. Everything is working fine. I tried to make the LED2 blink base on same condition which used for LED1.
4. So I created an another header file for LED2 and copied the function from the LED1 to new header file.
5.In new header file I included everything by #include "delay.h" #include "lcd.h" #include "external_eeprom.h" and pasted the code copied from LED1.Then changed the function name and variable which should work for LED2 only independent from LED1.
6.When tried to execute the program it showing conflicting function, variable error.
7.I checked everything like variable and function name on both LED1 and LED2 there is no same function or variable with same name.
I need to create an separate header file for LED2.Please provide the solution to solve this issue...