Skip to content

Commit 102b7f3

Browse files
committed
boards: shields: arduino_giga_display_shield: add LED to DT
Added is31fl3197@50 to overlay Also updated GIGA board yaml file to say that it supports i2c And updated sample sketch to mention it Signed-off-by: Kurt Eckhardt <[email protected]>
1 parent 211666e commit 102b7f3

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

boards/arduino/giga_r1/arduino_giga_r1_stm32h747xx_m7.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ supported:
1212
- gpio
1313
- arduino_spi
1414
- spi
15+
- i2c
1516
- memc
1617
- usb_device
1718
vendor: arduino

boards/shields/arduino_giga_display_shield/boards/arduino_giga_r1_m7.overlay

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#include <zephyr/dt-bindings/display/panel.h>
8+
#include <zephyr/dt-bindings/led/led.h>
89

910
/ {
1011
lvgl_pointer {
@@ -93,4 +94,15 @@
9394
reset-gpios = <&gpioi 2 GPIO_ACTIVE_LOW>;
9495
irq-gpios = <&gpioi 1 GPIO_ACTIVE_HIGH>;
9596
};
97+
is31fl3197@50 {
98+
compatible = "issi,is31fl3197";
99+
reg = <0x50>;
100+
101+
led_rgb {
102+
label = "RGB LED";
103+
color-mapping = <LED_COLOR_ID_RED>,
104+
<LED_COLOR_ID_GREEN>,
105+
<LED_COLOR_ID_BLUE>;
106+
};
107+
};
96108
};

samples/drivers/led/is31fl319x/README.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,25 @@ Once mapped it calls off to the led library to display the color.
2323
Building and Running
2424
********************
2525

26-
This sample can be built and executed on an Arduino Nicla Sense ME, or on
26+
This sample can be built and executed on an Arduino Nicla Sense ME, or
27+
Arduino Giga with an Arduino Giga Display shield, or on
2728
any board where the devicetree has an I2C device node with compatible
28-
:dtcompatible:`issi,is31fl3194` or :dtcompatible:`issi,is31fl319` with the
29-
relevant bus controller node also being enabled.
29+
:dtcompatible:`issi,is31fl3194` or :dtcompatible:`issi,is31fl3197`
30+
with the relevant bus controller node also being enabled.
3031

3132
.. zephyr-app-commands::
3233
:zephyr-app: samples/drivers/led/is31fl319x
3334
:board: arduino_nicla_sense_me
3435
:goals: build flash
3536
:compact:
3637

38+
.. zephyr-app-commands::
39+
:zephyr-app: samples/drivers/led/is31fl319x
40+
:board: arduino_giga_r1//m7
41+
:shield: arduino_giga_display_shield
42+
:goals: build flash
43+
:compact:
44+
3745
After flashing, the LED starts to switch colors and messages with the current
3846
LED color are printed on the console. If a runtime error occurs, the sample
3947
exits without printing to the console.

0 commit comments

Comments
 (0)