Skip to content

Commit 02eb185

Browse files
sebromeropillo79
authored andcommitted
unoq: add LED definitions to variant
1 parent a60cd82 commit 02eb185

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

variants/arduino_uno_q_stm32u585xx/variant.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,12 @@
1919
#define AR_INTERNAL1V8 4
2020
#define AR_EXTERNAL 5
2121
#define AR_INTERNAL AR_INTERNAL2V5
22+
23+
// RGB LEDs Pin Map
24+
#define LED3_R DIGITAL_PIN_GPIOS_FIND_NODE(DT_NODELABEL(led3_red))
25+
#define LED3_G DIGITAL_PIN_GPIOS_FIND_NODE(DT_NODELABEL(led3_green))
26+
#define LED3_B DIGITAL_PIN_GPIOS_FIND_NODE(DT_NODELABEL(led3_blue))
27+
28+
#define LED4_R DIGITAL_PIN_GPIOS_FIND_NODE(DT_NODELABEL(led4_red))
29+
#define LED4_G DIGITAL_PIN_GPIOS_FIND_NODE(DT_NODELABEL(led4_green))
30+
#define LED4_B DIGITAL_PIN_GPIOS_FIND_NODE(DT_NODELABEL(led4_blue))

0 commit comments

Comments
 (0)