We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79ded68 commit 655d798Copy full SHA for 655d798
esp8266.ino
@@ -47,9 +47,9 @@ void handleRoot()
47
Serial.println("[WebServer] Request: /");
48
49
// Read illuminance (lx)
50
- float visible = tsl2561.getLuminosity(TSL2561_VISIBLE);
51
- float full = tsl2561.getLuminosity(TSL2561_FULLSPECTRUM);
52
- float ir = tsl2561.getLuminosity(TSL2561_INFRARED);
+ uint32_t visible = tsl2561.getLuminosity(TSL2561_VISIBLE);
+ uint32_t full = tsl2561.getLuminosity(TSL2561_FULLSPECTRUM);
+ uint32_t ir = tsl2561.getLuminosity(TSL2561_INFRARED);
53
54
// Read temperature (°C)
55
float temperature = readTemperature();
0 commit comments