![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
NanoService Device Library Hello World Ported to K64F
Dependencies: EthernetInterface mbed-rtos mbed nsdl_lib
Fork of NSDL_HelloWorld by
Diff: resources/light.cpp
- Revision:
- 9:16f54efbb5fe
- Parent:
- 2:7e489126fe7a
diff -r cdf868ccae03 -r 16f54efbb5fe resources/light.cpp --- a/resources/light.cpp Mon Aug 04 17:00:58 2014 +0000 +++ b/resources/light.cpp Mon Feb 29 05:09:16 2016 +0000 @@ -7,9 +7,9 @@ #define LIGHT_RES_ID "lt/0/dim" extern Serial pc; -//PwmOut led1(LED1); -static PwmOut led2(LED2); -static PwmOut led3(LED3); +static DigitalOut led1(LED1); +static DigitalOut led2(LED2); +static DigitalOut led3(LED3); //PwmOut led4(LED4); /* Only GET and PUT method allowed */ @@ -43,8 +43,8 @@ led_dimm = led_dimm/100; //led1.write(led_dimm); - led2.write(led_dimm); - led3.write(led_dimm); + //led2.write(led_dimm); + //led3.write(led_dimm); //led4.write(led_dimm); coap_res_ptr = sn_coap_build_response(received_coap_ptr, COAP_MSG_CODE_RESPONSE_CHANGED);