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:
0:88d3b9015f7c
Child:
1:b5c534165dfe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rgb.h	Mon Feb 26 11:25:59 2018 +0000
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "mbed.h"
+
+#define MAX_ARRAY_LENGTH_RGB 7
+
+namespace ProjectOne{
+    
+    class RGB{
+        public:
+            RGB(PinName firstPin=p23, PinName secondPin=p24, PinName thirdPin=p25);
+            void turnOnLed(int kleur);
+        private:
+            const static float r_values[MAX_ARRAY_LENGTH_RGB];
+            const static float g_values[MAX_ARRAY_LENGTH_RGB];
+            const static float b_values[MAX_ARRAY_LENGTH_RGB];
+            PwmOut r;
+            PwmOut g;
+            PwmOut b;
+    };
+};
\ No newline at end of file