summaryrefslogtreecommitdiff
path: root/platformio/common/libs/led/homekit/led.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platformio/common/libs/led/homekit/led.cpp')
-rw-r--r--platformio/common/libs/led/homekit/led.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/platformio/common/libs/led/homekit/led.cpp b/platformio/common/libs/led/homekit/led.cpp
index acc2140..ffefb04 100644
--- a/platformio/common/libs/led/homekit/led.cpp
+++ b/platformio/common/libs/led/homekit/led.cpp
@@ -1,6 +1,6 @@
#include "led.h"
-namespace homekit {
+namespace homekit::led {
void Led::on_off(uint16_t delay_ms, bool last_delay) const {
on();
@@ -17,4 +17,11 @@ void Led::blink(uint8_t count, uint16_t delay_ms) const {
}
}
+
+#ifdef CONFIG_TARGET_NODEMCU
+const Led* board_led = new Led(CONFIG_BOARD_LED_GPIO);
+#endif
+const Led* mcu_led = new Led(CONFIG_MCU_LED_GPIO);
+
+
}