For Nabeel

Dependencies:   mbed mbed-http ESP8266

Revision:
12:2c3550f16e6d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RGBLED.h	Sat Mar 26 22:30:25 2022 +0000
@@ -0,0 +1,21 @@
+#ifndef MBED_RGBLED_H
+#define MBED_RGBLED_H
+
+#include "mbed.h"
+
+//Class to control an RGB LED using three PWM pins
+
+class RGBLed
+{
+public:
+    RGBLed(PinName redpin, PinName greenpin, PinName bluepin);
+    void write(float red,float green, float blue);
+private:
+    PwmOut _redpin;
+    PwmOut _greenpin;
+    PwmOut _bluepin;
+};
+ 
+
+
+#endif
\ No newline at end of file