Antes de nada decir que llevo desde hace tiempo buscando el error por Google y no he encontrado niguna solución al problema.
ESTE ES EL CODIGO:
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_TSL2561_U.h>
Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345);
void setup(void)
{
Serial.begin(9600);
Serial.println("Light Sensor Test");
Serial.println("");
/* Initialise the sensor */
if(!tsl.begin())
{
Serial.print("No TSL2561 detected");
while(1);
}
tsl.enableAutoRange(true);
tsl.setIntegrationTime(TSL2561_INTEGRATIONTIME_13MS);
Serial.println("");
}
void loop(void)
{
/* Get a new sensor event */
sensors_event_t event;
tsl.getEvent(&event);
/* Display the results (light is measured in lux) */
if (event.light)
{
Serial.print(event.light);
Serial.println(" lux");
}
else
{
Serial.println("Sensor overload");
}
delay(250);
}
Y ESTE ES EL ERROR:
exit status 1
Error compilando para la tarjeta NodeMCU 0.9 (ESP-12 Module).