Witam, próbuję zainicjować ten LCD lecz bez większych skutków.
Po wrzuceniu bibliotek Joerg'a Wunchs'a wyrzuca mi błędy jakby nie było pliku "defines.h" co do obwodu to mam wszystko okej, bo na innej bibliotece mogę normalnie wszytko wyświetlać. Program piszę w Eclipse. Jestem świeży w tych sprawach, więc proszę o pomoc
Tutaj zrzut z eclipse'a:
Log kompilacji:
Plik defines:
biblioteka hd44780.h
Plik hd44780.c
No i mój program, to znaczy tylko fukncje definiujące.
Po wrzuceniu bibliotek Joerg'a Wunchs'a wyrzuca mi błędy jakby nie było pliku "defines.h" co do obwodu to mam wszystko okej, bo na innej bibliotece mogę normalnie wszytko wyświetlać. Program piszę w Eclipse. Jestem świeży w tych sprawach, więc proszę o pomoc
Tutaj zrzut z eclipse'a:
Log kompilacji:
17:32:13 **** Incremental Build of configuration Release for project HD44780 ****
make all
Building file: ../LCD/hd44780.c
Invoking: AVR Compiler
avr-gcc -I"C:\Users\Albert\workspace\LCD2x16" -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega8 -DF_CPU=1000000UL -MMD -MP -MF"LCD/hd44780.d" -MT"LCD/hd44780.d" -c -o "LCD/hd44780.o" "../LCD/hd44780.c"
../LCD/hd44780.c:17:21: error: defines.h: No such file or directory
../LCD/hd44780.c:62:22: error: macro "SET_" requires 3 arguments, but only 2 given
../LCD/hd44780.c: In function 'hd44780_pulse_e':
../LCD/hd44780.c:62: error: 'SET_' undeclared (first use in this function)
../LCD/hd44780.c:62: error: (Each undeclared identifier is reported only once
../LCD/hd44780.c:62: error: for each function it appears in.)
../LCD/hd44780.c:89:29: error: macro "READ_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:89: error: 'READ_' undeclared (first use in this function)
../LCD/hd44780.c:92:22: error: macro "CLR_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:92: error: 'CLR_' undeclared (first use in this function)
../LCD/hd44780.c:103:23: error: macro "CLR_" requires 3 arguments, but only 2 given
../LCD/hd44780.c: In function 'hd44780_outnibble':
../LCD/hd44780.c:103: error: 'CLR_' undeclared (first use in this function)
../LCD/hd44780.c:105:25: error: macro "SET_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:105: error: 'SET_' undeclared (first use in this function)
../LCD/hd44780.c:107:25: error: macro "CLR_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:108:29: error: macro "ASSIGN_" requires 4 arguments, but only 3 given
../LCD/hd44780.c:108: error: 'ASSIGN_' undeclared (first use in this function)
../LCD/hd44780.c:131:23: error: macro "SET_" requires 3 arguments, but only 2 given
../LCD/hd44780.c: In function 'hd44780_innibble':
../LCD/hd44780.c:131: error: 'SET_' undeclared (first use in this function)
../LCD/hd44780.c:132:31: error: macro "ASSIGN_" requires 4 arguments, but only 3 given
../LCD/hd44780.c:132: error: 'ASSIGN_' undeclared (first use in this function)
../LCD/hd44780.c:134:25: error: macro "SET_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:136:25: error: macro "CLR_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:136: error: 'CLR_' undeclared (first use in this function)
../LCD/hd44780.c:138:31: error: macro "ASSIGN_" requires 4 arguments, but only 3 given
../LCD/hd44780.c:139:23: error: macro "CLR_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:185:22: error: macro "SET_" requires 3 arguments, but only 2 given
../LCD/hd44780.c: In function 'hd44780_init':
../LCD/hd44780.c:185: error: 'SET_' undeclared (first use in this function)
../LCD/hd44780.c:186:22: error: macro "SET_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:187:21: error: macro "SET_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:188:31: error: macro "ASSIGN_" requires 4 arguments, but only 3 given
../LCD/hd44780.c:188: error: 'ASSIGN_' undeclared (first use in this function)
../LCD/hd44780.c:212:29: error: macro "ASSIGN_" requires 4 arguments, but only 3 given
../LCD/hd44780.c: In function 'hd44780_powerdown':
../LCD/hd44780.c:212: error: 'ASSIGN_' undeclared (first use in this function)
../LCD/hd44780.c:213:23: error: macro "CLR_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:213: error: 'CLR_' undeclared (first use in this function)
../LCD/hd44780.c:214:23: error: macro "CLR_" requires 3 arguments, but only 2 given
../LCD/hd44780.c:215:22: error: macro "CLR_" requires 3 arguments, but only 2 given
make: *** [LCD/hd44780.o] Błąd 1
17:32:14 Build Finished (took 458ms)
Plik defines:
Kod: C / C++
biblioteka hd44780.h
Kod: C / C++
Plik hd44780.c
Kod: C / C++
No i mój program, to znaczy tylko fukncje definiujące.
Kod: C / C++
