More advanced NanoService Demo for LPC1768 App Board using OMA Lightweight Objects
Dependencies: Beep C12832_lcd EthernetInterface LM75B MMA7660 mbed-rtos mbed nsdl_lib
Fork of LWM2M_NanoService_Ethernet by
resources/light.h@20:84ee332ba360, 2014-04-08 (annotated)
- Committer:
- sstark
- Date:
- Tue Apr 08 01:02:06 2014 +0000
- Revision:
- 20:84ee332ba360
- Parent:
- 2:7e489126fe7a
Properly use the RGB_LED define to exclude the creation of the RGB resource, and encapsulate the RGB PwmOut object in an RBG class to avoid having the pins activated when they were initialized statically.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 2:7e489126fe7a | 1 | // Light resource implementation |
bogdanm | 2:7e489126fe7a | 2 | |
bogdanm | 2:7e489126fe7a | 3 | #ifndef LIGHT_H |
bogdanm | 2:7e489126fe7a | 4 | #define LIGHT_H |
bogdanm | 2:7e489126fe7a | 5 | |
bogdanm | 2:7e489126fe7a | 6 | #include "nsdl_support.h" |
bogdanm | 2:7e489126fe7a | 7 | |
bogdanm | 2:7e489126fe7a | 8 | int create_light_resource(sn_nsdl_resource_info_s *resource_ptr); |
bogdanm | 2:7e489126fe7a | 9 | |
bogdanm | 2:7e489126fe7a | 10 | #endif |