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.cpp
- Revision:
- 144:e4d24c2c8f18
- Parent:
- 142:b7a75144b0f1
- Child:
- 146:8c05a119d9d4
--- a/Light.cpp Tue Apr 01 22:25:46 2014 +0000 +++ b/Light.cpp Wed Apr 02 00:43:37 2014 +0000 @@ -45,10 +45,17 @@ // Setup Philips Light if enabled if (PL_ENABLE) this->m_pl = new PhilipsLight(PL_LIGHT_ID,this->m_transports[HTTP_TRANSPORT],this->logger()); else this->m_pl = NULL; - + + #ifdef COPCAR_PERSONALITY + // Setup External CopCar Flasher if enabled + if (EXT_LED_ENABLE) this->m_ext_led = new CopCarLEDFlasher(new PwmOut(EXT_LED_PIN),new PwmOut(EXT_LED_PIN_COPCAR),this->logger()); + else this->m_ext_led = NULL; + #endif + #ifdef LIGHT_PERSONALITY // Setup External LED Light if enabled if (EXT_LED_ENABLE) this->m_ext_led = new ExternalLEDLight(new PwmOut(EXT_LED_PIN),this->logger()); else this->m_ext_led = NULL; + #endif // DEBUG if (PL_ENABLE) this->logger()->log("Light name: %s (Philips Light %d)",this->getName(),PL_LIGHT_ID);