diff --git a/samples/basic/blinky_pwm/README.rst b/samples/basic/blinky_pwm/README.rst index 802dd9e58bb..6c558fd4cd4 100644 --- a/samples/basic/blinky_pwm/README.rst +++ b/samples/basic/blinky_pwm/README.rst @@ -58,6 +58,8 @@ In these other cases, however, manual wiring is necessary: - connect PWM2 (PA0) to an LED * - :ref:`nucleo_f103rb_board` - connect PWM1 (PA8) to an LED + * - :ref:`nucleo_wb55rg_board` + - connect PWM1 (PA8) to an LED Building and Running ******************** diff --git a/samples/basic/blinky_pwm/boards/nucleo_wb55rg.overlay b/samples/basic/blinky_pwm/boards/nucleo_wb55rg.overlay new file mode 100644 index 00000000000..103dd44283f --- /dev/null +++ b/samples/basic/blinky_pwm/boards/nucleo_wb55rg.overlay @@ -0,0 +1,18 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * Copyright (c) 2021 Planet Innovation + */ + +/ { + pwmleds { + compatible = "pwm-leds"; + external_pwm_led: external_pwm_led { + pwms = <&pwm1 1 0 PWM_POLARITY_NORMAL>; + }; + }; + + aliases { + pwm-led0 = &external_pwm_led; + }; +};