Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
diff -r 1388cb37c27e -r e4d24c2c8f18 Light.cpp
--- 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);