On Node-Red and MQTT

Dependencies:   mbed ESP8266Interface MbedJSONValue MQTT JSON

Revision:
22:518ae39b6d77
Parent:
21:f08f17225c7c
diff -r f08f17225c7c -r 518ae39b6d77 rgbled.h
--- a/rgbled.h	Fri Mar 08 07:05:46 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-#ifndef __RGBLED_H__
-#define __RGBLED_H__
-
-// includes
-#include "mbed.h"
-
-// defines
-enum color {none, red, yellow, green, cyan, blue, magenta};
-
-// rgb led
-class rgbled {
-private:
-    DigitalOut _pin_red;
-    DigitalOut _pin_green;
-    DigitalOut _pin_blue;
-    bool _on;
-    bool _off;
-    void _none(void);
-    void _red(void);
-    void _yellow(void);
-    void _green(void);
-    void _cyan(void);
-    void _blue(void);
-    void _magenta(void);
-public:
-    rgbled(PinName pin_red, PinName pin_green, PinName pin_blue);
-    void active(bool a);
-    void set(color c);
-};
-
-#endif
\ No newline at end of file