Skip to content

Commit ae2fe12

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 to mention it Signed-off-by: Kurt Eckhardt <kurte@rockisland.com>
1 parent 5ec92b2 commit ae2fe12

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-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
- usbd
1718
vendor: arduino

‎boards/shields/arduino_giga_display_shield/boards/arduino_giga_r1_m7.overlay‎

Lines changed: 13 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
aliases {
@@ -88,4 +89,16 @@
8889
reset-gpios = <&gpioi 2 GPIO_ACTIVE_LOW>;
8990
irq-gpios = <&gpioi 1 GPIO_ACTIVE_HIGH>;
9091
};
92+
93+
is31fl3197@50 {
94+
compatible = "issi,is31fl3197";
95+
reg = <0x50>;
96+
97+
led_rgb {
98+
label = "RGB LED";
99+
color-mapping = <LED_COLOR_ID_RED>,
100+
<LED_COLOR_ID_GREEN>,
101+
<LED_COLOR_ID_BLUE>;
102+
};
103+
};
91104
};

‎samples/drivers/led/is31fl319x/README.rst‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,25 @@ times that matches the index of this LED within the device.
3434
Building and Running
3535
********************
3636

37-
This sample can be built and executed on an Arduino Nicla Sense ME, or on
37+
This sample can be built and executed on an Arduino Nicla Sense ME, or
38+
Arduino Giga with an Arduino Giga Display shield, or on
3839
any board where the devicetree has an I2C device node with compatible
39-
:dtcompatible:`issi,is31fl3194` or :dtcompatible:`issi,is31fl3197` with the
40-
relevant bus controller node also being enabled.
40+
:dtcompatible:`issi,is31fl3194` or :dtcompatible:`issi,is31fl3197`
41+
with the relevant bus controller node also being enabled.
4142

4243
.. zephyr-app-commands::
4344
:zephyr-app: samples/drivers/led/is31fl319x
4445
:board: arduino_nicla_sense_me
4546
:goals: build flash
4647
:compact:
4748

49+
.. zephyr-app-commands::
50+
:zephyr-app: samples/drivers/led/is31fl319x
51+
:board: arduino_giga_r1//m7
52+
:shield: arduino_giga_display_shield
53+
:goals: build flash
54+
:compact:
55+
4856
After flashing, the LED starts to switch colors and messages with the current
4957
LED color are printed on the console. If a runtime error occurs, the sample
5058
exits without printing to the console.

0 commit comments

Comments
 (0)