yatan / Arduino_Sensors_Sketch

Sketch of ethernet arduino sensors project for OpenSpirulina project
http://openspirulina.com/
GNU General Public License v3.0
2 stars 1 forks source link

Change #if for if code block #32

Closed yatan closed 6 years ago

yatan commented 6 years ago

`// Capture Lux ambient float capture_lux() {

if option_lux == lux_BH1750 // Return Lux value with BH1750

return lux_sensor.readLightLevel();

elif option_lux == lux_ldr // Return Lux value with LDR

return analogRead(ldr_pin);

endif

}`