   
   va_end(pins);
 }
+
+int _min(int count, ...)
+{
+
+  if (count == 0)
+  {
+    return 0;
+  }
+  
+  va_list values;
+  va_start(values, count);
+  
+  int min = va_arg(values, int);
+  
+  for (int i = 1; i < count; ++i)
+  {
+      int nextValue = va_arg(values, int);
+
+      if (nextValue < min)
+      {
+        min = nextValue;
+      }
+  }
+
+  va_end(values);
+  
+  return min;
+}
+
+void printBreak()
+{
+  Serial.println("\n=================================================\n");
+}
+

          RED_LIGHT_COMPONENT, 
          BLUE_LIGHT_COMPONENT,
          GREEN_LIGHT_COMPONENT);
}

void loop() 
{
  redInput = analogRead(RED_SENSOR);
  greenInput = analogRead(GREEN_SENSOR);
  blueInput = analogRead(BLUE_SENSOR);

  String message = "";
  message = message + "Red: " + redInput;
  message = message + ", Green: " + greenInput;
  message = message + ", Blue: " + blueInput;
  Serial.println(message);

  redOutput = map(redInput, 0, 1023, 0, 255);
  blueOutput = map(blueInput, 0, 1023, 0, 255);
  greenOutput = map(greenInput, 0, 1023, 0, 255);
 
  message = "";
  message = message + "Red Output: " + redOutput;
  message = message + " Green Output: " + greenOutput;
  message = message + " Blue Output: " + blueOutput;
  Serial.println(message);

  analogWrite(RED_LIGHT_COMPONENT, redOutput);
  analogWrite(GREEN_LIGHT_COMPONENT, greenOutput);
  analogWrite(BLUE_LIGHT_COMPONENT, blueOutput);
  
  delay(500);
}

void setOutput(int count, ...)

#include <stdarg.h>
#include <stdio.h>

long secondsToMillis(double);

const double DEVICE_VOLTAGE = 5.0;

const int RED_LIGHT_COMPONENT = 11;
