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: MBEDLight.cpp
- Revision:
- 72:46c94966311b
- Parent:
- 71:90bf61bc3727
- Child:
- 73:3e6478c7649f
diff -r 90bf61bc3727 -r 46c94966311b MBEDLight.cpp --- a/MBEDLight.cpp Mon Mar 03 22:39:48 2014 +0000 +++ b/MBEDLight.cpp Mon Mar 03 23:08:03 2014 +0000 @@ -22,11 +22,9 @@ #include "LightSwitchAction.h" // MBED Light - extern DigitalOut led2; - extern DigitalOut led3; - PwmOut led_2(LED2); - PwmOut led_3(LED3); - + extern PwmOut led2; + extern PwmOut led3; + // default constructor MBEDLight::MBEDLight(ErrorHandler *error_handler,Transport *transports[NUM_TRANSPORTS],int instance,void *endpoint) : Light(error_handler,transports,instance,endpoint) { } @@ -44,7 +42,7 @@ // dim void MBEDLight::dim(int value) { float dim_val = (float)(value/100.0); - led_2.write(dim_val); - led_3.write(dim_val); + led2.write(dim_val); + led3.write(dim_val); Light::dim(value); } \ No newline at end of file