We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88dd5f commit 679d32bCopy full SHA for 679d32b
libraries/Zigbee/examples/Zigbee_Power_Outlet/Zigbee_Power_Outlet.ino
@@ -34,7 +34,13 @@
34
35
/* Zigbee power outlet configuration */
36
#define ZIGBEE_OUTLET_ENDPOINT 1
37
-uint8_t led = RGB_BUILTIN;
+
38
+#ifdef LED_BUILTIN // Use built-in LED if defined for the board
39
+uint8_t led = LED_BUILTIN;
40
+#else
41
+uint8_t led = 2; // Use custom LED pin
42
+#endif
43
44
uint8_t button = BOOT_PIN;
45
46
ZigbeePowerOutlet zbOutlet = ZigbeePowerOutlet(ZIGBEE_OUTLET_ENDPOINT);
0 commit comments