Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ADS1115 BME280 CronoDot SDFileSystem mbed
Fork of Outdoor_UPAS_v1_2_powerfunction by
Diff: main.cpp
- Revision:
- 48:45d29f874b23
- Parent:
- 47:fe50d72c7adc
--- a/main.cpp Thu May 05 17:43:23 2016 +0000
+++ b/main.cpp Sat May 07 18:43:33 2016 +0000
@@ -713,7 +713,7 @@
//////////////////////////////////////////////////////////////
void flowControl()
{
-
+ if(pumps == 1){
//RGB_LED.set_led(0,1,0);
omronReading = ads.readADC_SingleEnded(0, 0xC383); // read channel 0 PGA = 2 : Full Scale Range = 2.048V
omronVolt = (omronReading*4.096)/(32768*1);
@@ -758,7 +758,7 @@
} else {
//RGB_LED.set_led(0,1,0);
}
-
+ }
}
//////////////////////////////////////////////////////////////
