Hello guys,
i first tried to do this alone, but i didn't have that much succes. That's why I hope you can help me. I mostly worked with the following web page: http://bildr.org/2011/02/mlx90614-arduino/ which is also very well explained. I copied the I2C master in the library directory und I imported the wire library and the i2c library into my wiring environment. After that I uploaded the programm, which i have also taken from the page mentioned above but it always tells me:
MLX90614\twimaster.cpp.o: In function i2c_init()':
C:\Users\Enrico\Desktop\Studium\3. Semester\E-technik\Semesterarbeit\arduino-0022\libraries\MLX90614/twimaster.cpp:31: multiple definition of
i2c_init()'
twimaster.cpp.o:C:\Users\Enrico\AppData\Local\Temp\build8202608816710175734.tmp/twimaster.cpp:31: first defined here
MLX90614\twimaster.cpp.o: In function i2c_start(unsigned char)':
C:\Users\Enrico\Desktop\Studium\3. Semester\E-technik\Semesterarbeit\arduino-0022\libraries\MLX90614/twimaster.cpp:41: multiple definition of
i2c_start(unsigned char)'
twimaster.cpp.o:C:\Users\Enrico\AppData\Local\Temp\build8202608816710175734.tmp/twimaster.cpp:41: first defined here
MLX90614\twimaster.cpp.o: In function i2c_start_wait(unsigned char)':
C:\Users\Enrico\Desktop\Studium\3. Semester\E-technik\Semesterarbeit\arduino-0022\libraries\MLX90614/twimaster.cpp:77: multiple definition of
i2c_start_wait(unsigned char)'
twimaster.cpp.o:C:\Users\Enrico\AppData\Local\Temp\build8202608816710175734.tmp/twimaster.cpp:77: first defined here
MLX90614\twimaster.cpp.o: In function i2c_rep_start(unsigned char)':
C:\Users\Enrico\Desktop\Studium\3. Semester\E-technik\Semesterarbeit\arduino-0022\libraries\MLX90614/twimaster.cpp:130: multiple definition of
i2c_rep_start(unsigned char)'
twimaster.cpp.o:C:\Users\Enrico\AppData\Local\Temp\build8202608816710175734.tmp/twimaster.cpp:130: first defined here
MLX90614\twimaster.cpp.o: In function i2c_stop()':
C:\Users\Enrico\Desktop\Studium\3. Semester\E-technik\Semesterarbeit\arduino-0022\libraries\MLX90614/twimaster.cpp:141: multiple definition of
i2c_stop()'
twimaster.cpp.o:C:\Users\Enrico\AppData\Local\Temp\build8202608816710175734.tmp/twimaster.cpp:141: first defined here
MLX90614\twimaster.cpp.o: In function i2c_write(unsigned char)':
C:\Users\Enrico\Desktop\Studium\3. Semester\E-technik\Semesterarbeit\arduino-0022\libraries\MLX90614/twimaster.cpp:161: multiple definition of
i2c_write(unsigned char)'
twimaster.cpp.o:C:\Users\Enrico\AppData\Local\Temp\build8202608816710175734.tmp/twimaster.cpp:161: first defined here
MLX90614\twimaster.cpp.o: In function i2c_readAck()':
C:\Users\Enrico\Desktop\Studium\3. Semester\E-technik\Semesterarbeit\arduino-0022\libraries\MLX90614/twimaster.cpp:182: multiple definition of
i2c_readAck()'
twimaster.cpp.o:C:\Users\Enrico\AppData\Local\Temp\build8202608816710175734.tmp/twimaster.cpp:182: first defined here
MLX90614\twimaster.cpp.o: In function i2c_readNak()':
C:\Users\Enrico\Desktop\Studium\3. Semester\E-technik\Semesterarbeit\arduino-0022\libraries\MLX90614/twimaster.cpp:197: multiple definition of
i2c_readNak()'
twimaster.cpp.o:C:\Users\Enrico\AppData\Local\Temp\build8202608816710175734.tmp/twimaster.cpp:197: first defined here
I have no clue what i have to do in order to solve this problem. : ( Can someome assist me?
Many thanks in advance!