chipKIT® Development Platform

Inspired by Arduino™

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

Created Thu, 08 Dec 2016 10:45:12 +0000 by fleatech


fleatech

Thu, 08 Dec 2016 10:45:12 +0000

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.


majenko

Fri, 09 Dec 2016 10:12:58 +0000

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.