See: https://github.com/EEEManchester/Food-Computer
Dependencies: DHT DS1820 MODSERIAL ModbusSlave232 SoftSerial TSL2561_I2C mbed millis
Fork of ModbusRTU-RS232 by
Diff: main.cpp
- Revision:
- 7:bd9f91d2698f
- Parent:
- 5:4503f4d054ba
--- 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 }