Pilot 1 working code (excluding new patient after calculation). %d changed in %f sensordata serial log.

Dependencies:   ADS1015 MPU6050 PixelArray mbed

Fork of Momo_New by Momo Medical

Revision:
31:24770fa8114b
Parent:
30:bc0bddc6f8d1
Child:
32:0944efc47e46
diff -r bc0bddc6f8d1 -r 24770fa8114b Sensorplate/main.cpp
--- a/Sensorplate/main.cpp	Mon Oct 09 09:25:50 2017 +0000
+++ b/Sensorplate/main.cpp	Mon Oct 09 13:56:54 2017 +0000
@@ -77,8 +77,8 @@
 int alarm_voltage = 5867;                                                   // Needed voltage for alarm expressed as a digital 15 bit value (=20% of max battery voltage)
 int red_var, green_var, blue_var;                                           // Variables to set LED intensity.
 short batteryvoltage_current = 0, batteryvoltage_last = 0, powervoltage_current, powervoltage_last;                  // Variables to manage batteryvoltage.
-int intensity_day = 50, intensity_night = 25;                               // Intensity settings for LED's to wall.
-double intensity, control_LED_intensity = 0;                                           // Variable between 0 and 1 to set the intensity of the LED's above the buttons.
+int intensity_day = 40, intensity_night = 10;                               // Intensity settings for LED's to wall.
+double intensity, control_LED_intensity = 0;                                // Variable between 0 and 1 to set the intensity of the LED's above the buttons.
 int a; // Test
 
 /*************************** CODE ********************************/
@@ -91,7 +91,8 @@
         intensity = intensity_night;
     }
     control_LED_intensity = (intensity/100);
-    pc.printf("control_LED_intensity = %f\n", control_LED_intensity);
+    pc.printf("Intensity LED's shines to wall = %f\n", intensity);
+    pc.printf("Intensity LED above buttons = %f\n", control_LED_intensity);
 }
 
 void serial_read()                                                          // Serial read for select LED intensity and colour.