Part One of my Project Course. Implementation of simple I/O and a custom defined protocol over UDP/IP.

Dependencies:   C12832 LM75B mbed EthernetInterface mbed-rtos

Revision:
1:b5c534165dfe
Parent:
0:88d3b9015f7c
Child:
2:6bfe732ba6bc
--- a/rgb.h	Mon Feb 26 11:25:59 2018 +0000
+++ b/rgb.h	Wed Mar 14 07:59:21 2018 +0000
@@ -1,6 +1,7 @@
 #pragma once
 
 #include "mbed.h"
+#include <string>
 
 #define MAX_ARRAY_LENGTH_RGB 7
 
@@ -9,7 +10,7 @@
     class RGB{
         public:
             RGB(PinName firstPin=p23, PinName secondPin=p24, PinName thirdPin=p25);
-            void turnOnLed(int kleur);
+            void turnOnLed(string kleur);
         private:
             const static float r_values[MAX_ARRAY_LENGTH_RGB];
             const static float g_values[MAX_ARRAY_LENGTH_RGB];
@@ -17,5 +18,6 @@
             PwmOut r;
             PwmOut g;
             PwmOut b;
+            int determineRgbIndex(string kleur);
     };
 };
\ No newline at end of file