See: https://github.com/EEEManchester/Food-Computer

Dependencies:   DHT DS1820 MODSERIAL ModbusSlave232 SoftSerial TSL2561_I2C mbed millis

Fork of ModbusRTU-RS232 by Afdhal Atiff Tan

Files at this revision

API Documentation at this revision

Comitter:
AfdhalAtiffTan
Date:
Thu Aug 11 13:50:38 2016 +0000
Parent:
6:e7a1bcea9dab
Commit message:
Got light sensor working.

Changed in this revision

TSL2561_I2C.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e7a1bcea9dab -r bd9f91d2698f TSL2561_I2C.lib
--- a/TSL2561_I2C.lib	Thu Aug 11 13:13:11 2016 +0000
+++ b/TSL2561_I2C.lib	Thu Aug 11 13:50:38 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/karlmaxwell67/code/TSL2561_I2C/#17fef2caa563
+https://developer.mbed.org/users/AfdhalAtiffTan/code/TSL2561_I2C/#3a0c5545d4f7
diff -r e7a1bcea9dab -r bd9f91d2698f main.cpp
--- a/main.cpp	Thu Aug 11 13:13:11 2016 +0000
+++ b/main.cpp	Thu Aug 11 13:50:38 2016 +0000
@@ -57,7 +57,7 @@
         regs[MB_3] = (int)(100.0f*water_temperature);//water_temp in celcius
         regs[MB_4] = (int)(100.0f*get_EC(water_temperature)); //water_ec 
         regs[MB_5] = (int)(100.0f*get_pH()); //water_ph
-        regs[MB_6] = lux_sensor.getLux(); //light_lux
+        regs[MB_6] = lux_sensor.getVisibleAndIR(); //light_lux
         regs[MB_7]=  window_switch.read(); //window_switch
         regs[MB_8] = shell_switch.read(); //shell_switch                      
     }