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:
144:e4d24c2c8f18
Parent:
135:7f3f963cd159
Child:
146:8c05a119d9d4
--- a/ExternalLEDLight.h	Tue Apr 01 22:25:46 2014 +0000
+++ b/ExternalLEDLight.h	Wed Apr 02 00:43:37 2014 +0000
@@ -25,10 +25,12 @@
 
 class ExternalLEDLight : BaseClass {
     private:
+        float         m_dim;
+        bool          m_dimming;
+        
+    protected:
         PwmOut       *m_led;
         int           m_state;
-        float         m_dim;
-        bool          m_dimming;
         
     public:
         ExternalLEDLight(PwmOut *led,ErrorHandler *error_handler);
@@ -37,7 +39,9 @@
        void on();
        void off();
        void dim(int dim);       // range: 0 - 100
-       void update();
+    
+    protected:
+       virtual void update();
 };
 
 #endif // _EXT_LED_LIGHT_H_
\ No newline at end of file