Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
135:7f3f963cd159
Parent:
105:759dee018363
Child:
144:e4d24c2c8f18
--- a/ExternalLEDLight.h	Fri Mar 28 16:24:12 2014 +0000
+++ b/ExternalLEDLight.h	Fri Mar 28 17:49:10 2014 +0000
@@ -21,27 +21,23 @@
 
 #include "mbed.h"
 #include "Definitions.h"
-#include "ErrorHandler.h"
+#include "BaseClass.h"
 
-class ExternalLEDLight {
+class ExternalLEDLight : BaseClass {
     private:
         PwmOut       *m_led;
         int           m_state;
         float         m_dim;
         bool          m_dimming;
-        ErrorHandler *m_error_handler;
         
     public:
         ExternalLEDLight(PwmOut *led,ErrorHandler *error_handler);
-       ~ExternalLEDLight();
+        virtual ~ExternalLEDLight();
        
        void on();
        void off();
        void dim(int dim);       // range: 0 - 100
        void update();
-       
-    private:
-       ErrorHandler *logger();
 };
 
 #endif // _EXT_LED_LIGHT_H_
\ No newline at end of file