- Mon Feb 16, 2015 1:44 am
#179759
Hi.
I'm trying to hookup the TSL2561 breakup I've bought to my Arduino Leonardo.
I'm getting a compile error.
I'm using Arduino IDE version 1.6.0 on Arch Linux
Thing's I've done
1. Installed the library as per the hookup guide (It's recognised in the examples and import library menus)
2. Restarted the IDE
3. Loaded the example sketch
4. Clicked Upload.
The error I get is as follows:
Thanks.
I'm trying to hookup the TSL2561 breakup I've bought to my Arduino Leonardo.
I'm getting a compile error.
I'm using Arduino IDE version 1.6.0 on Arch Linux
Thing's I've done
1. Installed the library as per the hookup guide (It's recognised in the examples and import library menus)
2. Restarted the IDE
3. Loaded the example sketch
4. Clicked Upload.
The error I get is as follows:
Code: Select all
Any help would be greatly appreciated.Arduino: 1.6.0 (Linux), Board: "Arduino Leonardo"
Using library SFE_TSL2561 in folder: /home/tim/Arduino/libraries/SFE_TSL2561 (legacy)
Using library Wire in folder: /usr/share/arduino/hardware/arduino/avr/libraries/Wire
/usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 -DUSB_MANUFACTURER= -DUSB_PRODUCT="Arduino Leonardo" -I/usr/share/arduino/hardware/arduino/avr/cores/arduino -I/usr/share/arduino/hardware/arduino/avr/variants/leonardo -I/home/tim/Arduino/libraries/SFE_TSL2561 -I/usr/share/arduino/hardware/arduino/avr/libraries/Wire /tmp/build1495823942791970162.tmp/SFE_TSL2561_example.cpp -o /tmp/build1495823942791970162.tmp/SFE_TSL2561_example.cpp.o
/usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 -DUSB_MANUFACTURER= -DUSB_PRODUCT="Arduino Leonardo" -I/usr/share/arduino/hardware/arduino/avr/cores/arduino -I/usr/share/arduino/hardware/arduino/avr/variants/leonardo -I/home/tim/Arduino/libraries/SFE_TSL2561 -I/usr/share/arduino/hardware/arduino/avr/libraries/Wire -I/home/tim/Arduino/libraries/SFE_TSL2561/utility /home/tim/Arduino/libraries/SFE_TSL2561/SFE_TSL2561.cpp -o /tmp/build1495823942791970162.tmp/SFE_TSL2561/SFE_TSL2561.cpp.o
/home/tim/Arduino/libraries/SFE_TSL2561/SFE_TSL2561.cpp:407:6: error: prototype for 'byte SFE_TSL2561::writeUInt(unsigned char, unsigned int)' does not match any in class 'SFE_TSL2561'
byte SFE_TSL2561::writeUInt(unsigned char address, unsigned int value)
^
In file included from /home/tim/Arduino/libraries/SFE_TSL2561/SFE_TSL2561.cpp:15:0:
/home/tim/Arduino/libraries/SFE_TSL2561/SFE_TSL2561.h:155:11: error: candidate is: boolean SFE_TSL2561::writeUInt(unsigned char, unsigned int)
boolean writeUInt(unsigned char address, unsigned int value);
^
Error compiling.
Thanks.