Skip to content

Commit 679d32b

Browse files
committed
fix(ci): Check if LED_BUILTIN exist
1 parent c88dd5f commit 679d32b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libraries/Zigbee/examples/Zigbee_Power_Outlet/Zigbee_Power_Outlet.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@
3434

3535
/* Zigbee power outlet configuration */
3636
#define ZIGBEE_OUTLET_ENDPOINT 1
37-
uint8_t led = RGB_BUILTIN;
37+
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+
3844
uint8_t button = BOOT_PIN;
3945

4046
ZigbeePowerOutlet zbOutlet = ZigbeePowerOutlet(ZIGBEE_OUTLET_ENDPOINT);

0 commit comments

Comments
 (0)