Project with example IPSO resources for LED bar, Gas Sensor, and Light Sensor

Dependencies:   EthernetInterface LED_Bar mbed-rtos mbed nsdl_lib

Files at this revision

API Documentation at this revision

Comitter:
michaeljkoster
Date:
Mon Oct 20 02:51:16 2014 +0000
Parent:
1:76ab3521eb51
Child:
3:af599897e26f
Commit message:
switch LED BAR pins to clear WiFi pins D3 and D5

Changed in this revision

resources/LEDbar.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/resources/LEDbar.cpp	Mon Oct 20 02:17:21 2014 +0000
+++ b/resources/LEDbar.cpp	Mon Oct 20 02:51:16 2014 +0000
@@ -11,7 +11,7 @@
 extern Serial pc;
 char leds[] = {"0000000000"}; //GGGGGGGGYR
 
-LED_Bar bar(D6, D5);
+LED_Bar bar(D7, D6);
 
 void set_leds(char *leds)
 {
@@ -65,5 +65,6 @@
 int create_LEDbar_resource(sn_nsdl_resource_info_s *resource_ptr)
 {
     nsdl_create_dynamic_resource(resource_ptr, sizeof(LEDBAR_RES_ID)-1, (uint8_t*)LEDBAR_RES_ID, sizeof(LEDBAR_RES_RT)-1, (uint8_t*)LEDBAR_RES_RT, 0, &LEDbar_resource_cb, (SN_GRS_GET_ALLOWED | SN_GRS_PUT_ALLOWED));
+    set_leds("0000000000");
     return 0;
 }
\ No newline at end of file