Wire.h, V1.3.1 and Adafruit TSL2561 Issues...

Post Reply
Posts: 7
Joined: Wed Oct 24, 2012 1:13 pm

Wire.h, V1.3.1 and Adafruit TSL2561 Issues...

Post by fleatech » Thu Dec 08, 2016 11:45 am

Compile error for the adafruit TSL2561 module, using their unified library...

The compile error seems to end at;

C:\Users\TheUSer\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\1.3.1\libraries\Wire/Wire.h:107:9: note: no known conversion for argument 1 from 'long unsigned int' to 'char*'

exit status 255
Error compiling for board chipKIT uC32.

Does anyone have any suggestions... Else, I'll be looking at a basic rewrite of the code for the TSL2561 sensor.

User avatar
Site Admin
Posts: 2188
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK

Re: Wire.h, V1.3.1 and Adafruit TSL2561 Issues...

Post by majenko » Fri Dec 09, 2016 11:12 am

This is basically a casting problem I think. The Arduino Wire library has just an 8-bit write. We have both an 8 bit and a *signed* 32-bit (which casts to 8 bit) write. I think the compiler gets confused about which you want to use.

The main question is, though, which line in the Adafruit library is calling that write function and causing the error - it should be detailed in the line(s) before the one you posted.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Post Reply