Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: Light.h
- Revision:
- 105:759dee018363
- Parent:
- 101:8747b6612e32
- Child:
- 134:58e7537a8c5f
diff -r 7a96a9a7cafb -r 759dee018363 Light.h --- a/Light.h Sun Mar 16 03:09:02 2014 +0000 +++ b/Light.h Sun Mar 16 04:35:20 2014 +0000 @@ -28,6 +28,9 @@ // Philips Light Support #include "PhilipsLight.h" +// External LED Light Support +#include "ExternalLEDLight.h" + class Light { private: ErrorHandler *m_error_handler; @@ -40,7 +43,9 @@ void *m_switch_action; int m_ioc_id; + PhilipsLight *m_pl; + ExternalLEDLight *m_ext_led; Thread *m_blinking_thread; int m_last_state; @@ -82,12 +87,13 @@ void *getSwitchAction(); private: - PhilipsLight *pl(); - void startBlinking(); - void stopBlinking(); - void manageBlinkingThread(); - void startBlinkingThread(); - void stopBlinkingThread(); + PhilipsLight *pl(); + ExternalLEDLight *extled(); + void startBlinking(); + void stopBlinking(); + void manageBlinkingThread(); + void startBlinkingThread(); + void stopBlinkingThread(); };