diff --git a/boards/shields/arduino_modulino_buttons/Kconfig.shield b/boards/shields/arduino_modulino_buttons/Kconfig.shield new file mode 100644 index 00000000000..1389b0d5036 --- /dev/null +++ b/boards/shields/arduino_modulino_buttons/Kconfig.shield @@ -0,0 +1,5 @@ +# Copyright 2025 Google LLC +# SPDX-License-Identifier: Apache-2.0 + +config SHIELD_ARDUINO_MODULINO_BUTTONS + def_bool $(shields_list_contains,arduino_modulino_buttons) diff --git a/boards/shields/arduino_modulino_buttons/arduino_modulino_buttons.overlay b/boards/shields/arduino_modulino_buttons/arduino_modulino_buttons.overlay new file mode 100644 index 00000000000..96c84cbfb43 --- /dev/null +++ b/boards/shields/arduino_modulino_buttons/arduino_modulino_buttons.overlay @@ -0,0 +1,27 @@ +/* + * Copyright 2025 Google LLC + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include + +&qwiic_i2c { + modulino-buttons@3e { + compatible = "i2c-device"; + reg = <0x3e>; + + modulino_buttons: modulino-buttons { + compatible = "arduino,modulino-buttons"; + zephyr,codes = , + , + ; + }; + + modulino_leds: modulino-leds { + compatible = "arduino,modulino-buttons-leds"; + }; + }; + +}; diff --git a/boards/shields/arduino_modulino_buttons/doc/img/arduino_modulino_buttons.webp b/boards/shields/arduino_modulino_buttons/doc/img/arduino_modulino_buttons.webp new file mode 100644 index 00000000000..c003d3358a5 Binary files /dev/null and b/boards/shields/arduino_modulino_buttons/doc/img/arduino_modulino_buttons.webp differ diff --git a/boards/shields/arduino_modulino_buttons/doc/index.rst b/boards/shields/arduino_modulino_buttons/doc/index.rst new file mode 100644 index 00000000000..3d5f428b1d9 --- /dev/null +++ b/boards/shields/arduino_modulino_buttons/doc/index.rst @@ -0,0 +1,30 @@ +.. _arduino_modulino_buttons: + +Arduino Modulino Buttons +######################## + +Overview +******** + +The Arduino Modulino Buttons is a QWIIC compatible module with three buttons +and three LEDs. + + +.. image:: img/arduino_modulino_buttons.webp + :align: center + :alt: Arduino Modulino Buttons module + +Programming +*********** + +Set ``--shield arduino_modulino_buttons`` when you invoke ``west build``, the +buttons will be available through the input subsystem and the LEDs through the +LED subsystem. + +For example, + +.. zephyr-app-commands:: + :zephyr-app: samples/subsys/input + :board: arduino_uno_r4@wifi + :shield: arduino_modulino_buttons + :goals: build diff --git a/boards/shields/arduino_modulino_smartleds/Kconfig.shield b/boards/shields/arduino_modulino_smartleds/Kconfig.shield new file mode 100644 index 00000000000..8ae10346405 --- /dev/null +++ b/boards/shields/arduino_modulino_smartleds/Kconfig.shield @@ -0,0 +1,5 @@ +# Copyright 2025 Google LLC +# SPDX-License-Identifier: Apache-2.0 + +config SHIELD_ARDUINO_MODULINO_SMARTLEDS + def_bool $(shields_list_contains,arduino_modulino_smartleds) diff --git a/boards/shields/arduino_modulino_smartleds/arduino_modulino_smartleds.overlay b/boards/shields/arduino_modulino_smartleds/arduino_modulino_smartleds.overlay new file mode 100644 index 00000000000..8873c1312bb --- /dev/null +++ b/boards/shields/arduino_modulino_smartleds/arduino_modulino_smartleds.overlay @@ -0,0 +1,24 @@ +/* + * Copyright 2025 Google LLC + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +/ { + aliases { + led-strip = &modulino_smartleds; + }; +}; + +&qwiic_i2c { + modulino_smartleds: modulino-smartleds@36 { + compatible = "arduino,modulino-smartleds"; + reg = <0x36>; + chain-length = <8>; + color-mapping = ; + }; +}; diff --git a/boards/shields/arduino_modulino_smartleds/doc/img/arduino_modulino_smartleds.webp b/boards/shields/arduino_modulino_smartleds/doc/img/arduino_modulino_smartleds.webp new file mode 100644 index 00000000000..7e5d6c5a54b Binary files /dev/null and b/boards/shields/arduino_modulino_smartleds/doc/img/arduino_modulino_smartleds.webp differ diff --git a/boards/shields/arduino_modulino_smartleds/doc/index.rst b/boards/shields/arduino_modulino_smartleds/doc/index.rst new file mode 100644 index 00000000000..f0f70ac4d3d --- /dev/null +++ b/boards/shields/arduino_modulino_smartleds/doc/index.rst @@ -0,0 +1,29 @@ +.. _arduino_modulino_smartleds: + +Arduino Modulino smart LEDs +########################### + +Overview +******** + +The Arduino Modulino smart LEDs is a QWIIC compatible module with 8 addressable +LEDs. + + +.. image:: img/arduino_modulino_smartleds.webp + :align: center + :alt: Arduino Modulino Smart LEDs + +Programming +*********** + +Set ``--shield arduino_modulino_smartleds`` when you invoke ``west build``, the +leds will be available through the LED strip subsystem. + +For example, + +.. zephyr-app-commands:: + :zephyr-app: samples/drivers/led/led_strip + :board: arduino_uno_r4@wifi + :shield: arduino_modulino_smartleds + :goals: build