Hello,
I have a simple LCD to arduino program in proteus. When all the lcd code is put inside the main.ino it works but when i put the lcd codes in seperate header file lcd.h and c file lcd.c file and reference them in the main.ino it won't build with error saying undefined reference to... as shown in the below.
in main.ino i have the header file included as shown above. the header file and c file were added using right click on the project panel so proteus places them automatically in the folder ARDUINO UNO_1 which was created automatically and the files resides within it as shown.
Can anybody help to know the problem and how to resolve?
btw the same situation works with atmega32 with LCD files in separate files from main.c
thank you
I have a simple LCD to arduino program in proteus. When all the lcd code is put inside the main.ino it works but when i put the lcd codes in seperate header file lcd.h and c file lcd.c file and reference them in the main.ino it won't build with error saying undefined reference to... as shown in the below.
in main.ino i have the header file included as shown above. the header file and c file were added using right click on the project panel so proteus places them automatically in the folder ARDUINO UNO_1 which was created automatically and the files resides within it as shown.
Can anybody help to know the problem and how to resolve?
btw the same situation works with atmega32 with LCD files in separate files from main.c
thank you