Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -540,3 +540,23 @@
/* Include common flash filesystem configuration */
qspi_flash: &n25q128a1 {};
#include "../common/arduino_flash_fs.dtsi"

/ {
zephyr,user {
/* Override builtin LED GPIO to point to the green LED */
builtin_led_gpios = <&gpioj 13 0>; /* Pin 13 on GPIOJ for Green LED, active-low */
};

leds {
compatible = "gpio-leds";
red_led: led_0 {
gpios = <&gpioi 12 GPIO_ACTIVE_LOW>; /* Red LED on GPIO pin 12 of GPIOI, active-low */
};
green_led: led_1 {
gpios = <&gpioj 13 GPIO_ACTIVE_LOW>; /* Green LED on GPIO pin 13 of GPIOJ, active-low */
};
blue_led: led_2 {
gpios = <&gpioe 3 GPIO_ACTIVE_LOW>; /* Blue LED on GPIO pin 3 of GPIOE, active-low */
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,29 @@
/* Include common flash filesystem configuration */
qspi_flash: &at25sf128a {};
#include "../common/arduino_flash_fs.dtsi"

/ {
zephyr,user {
/* Override builtin LED GPIO to point to the green LED (led2) */
builtin_led_gpios = <&ioport4 0 0>; /* GPIO pin 0 on ioport4 (green LED) */
};

leds {
compatible = "gpio-leds";

led1: led1 {
gpios = <&ioport1 7 GPIO_ACTIVE_LOW>; /* Red LED on GPIO pin 7 of ioport1, active-low */
label = "LEDR"; /* Label changed to Red LED */
};

led2: led2 {
gpios = <&ioport4 0 GPIO_ACTIVE_LOW>; /* Green LED on GPIO pin 0 of ioport4, active-low */
label = "LEDG"; /* Label changed to Green LED */
};

led3: led3 {
gpios = <&ioport8 0 GPIO_ACTIVE_LOW>; /* Blue LED on GPIO pin 0 of ioport8, active-low */
label = "LEDB"; /* Label changed to Blue LED */
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,26 @@ qspi_flash: &mx25l12833f {};
<&adc1 13>; /* Hack for D20 */
};
};

/ {
zephyr,user {
/* Override builtin LED GPIO to point to the green LED */
builtin_led_gpios = <&gpiok 6 0>; /* Pin 6 on GPIOK, active low */
};

leds {
compatible = "gpio-leds";

red_led: led_0 {
gpios = <&gpiok 5 GPIO_ACTIVE_LOW>; /* Red LED on GPIO pin 5, active-low */
};

green_led: led_1 {
gpios = <&gpiok 6 GPIO_ACTIVE_LOW>; /* Green LED on GPIO pin 6, active-low */
};

blue_led: led_2 {
gpios = <&gpiok 7 GPIO_ACTIVE_LOW>; /* Blue LED on GPIO pin 7, active-low */
};
};
};
Loading