Jelle Raes / Mbed 2 deprecated Projec_1_projectlab

Dependencies:   EthernetInterface LM75B mbed-rtos mbed

Fork of communication by Jelle Raes

Revision:
2:067142778937
Parent:
0:52e944ca21ea
Child:
3:9c600fb19ed2
--- a/led.cpp	Tue Mar 13 10:31:27 2018 +0000
+++ b/led.cpp	Tue Mar 13 12:15:05 2018 +0000
@@ -5,26 +5,43 @@
 Serial pc3(USBTX, USBRX);
 led::led(void)
 {
-    count =4;
-    colors[0].name="red";
+/**
+colors[].name = "";
+colors[].redValue = ;
+colors[].greenValue = ;
+colors[].blueValue = ;
+*/    
+    
+    count =6;
+    colors[0].name= "red";
     colors[0].redValue = 0.0;
-    colors[0].greenValue =1.0;
-    colors[0].blueValue =1.0;
+    colors[0].greenValue = 1.0;
+    colors[0].blueValue = 1.0;
     
-    colors[1].name="green";
+    colors[1].name= "green";
     colors[1].redValue = 1.0;
-    colors[1].greenValue =0.0;
-    colors[1].blueValue =1.0;
+    colors[1].greenValue = 0.0;
+    colors[1].blueValue = 1.0;
     
-    colors[2].name="blue";
+    colors[2].name= "blue";
     colors[2].redValue = 1.0;
-    colors[2].greenValue =1.0;
-    colors[2].blueValue =0.0;
+    colors[2].greenValue = 1.0;
+    colors[2].blueValue = 0.0;
+    
+    colors[3].name= "black";
+    colors[3].redValue = 1.0;
+    colors[3].greenValue = 1.0;
+    colors[3].blueValue = 1.0;
     
-    colors[3].name="black";
-    colors[3].redValue = 1.0;
-    colors[3].greenValue =1.0;
-    colors[3].blueValue =1.0;
+    colors[4].name= "white";
+    colors[4].redValue = 0.0;
+    colors[4].greenValue = 0.0;
+    colors[4].blueValue = 0.0;
+    
+    colors[5].name = "yellow";
+    colors[5].redValue = 0.0;
+    colors[5].greenValue = 0.0;
+    colors[5].blueValue = 1.0;
 }