samples: servo-motor: Add overlay for Cytron Maker Pi RP2040
Enable servo port GP12. Add commented-out entries for the other ports, as is done for the other overlay files. Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
This commit is contained in:
committed by
Henrik Brix Andersen
parent
29c95ff3fd
commit
2e6955100e
16
samples/basic/servo_motor/boards/maker_pi_rp2040.overlay
Normal file
16
samples/basic/servo_motor/boards/maker_pi_rp2040.overlay
Normal file
@@ -0,0 +1,16 @@
|
||||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
/* Copyright 2025 Jonas Berg */
|
||||
|
||||
#include <zephyr/dt-bindings/pwm/pwm.h>
|
||||
|
||||
/ {
|
||||
servo: servo {
|
||||
compatible = "pwm-servo";
|
||||
pwms = <&pwm 12 PWM_MSEC(20) PWM_POLARITY_NORMAL>; /* GP12 */
|
||||
/* <&pwm 13 PWM_MSEC(20) PWM_POLARITY_NORMAL> */ /* GP13 */
|
||||
/* <&pwm 14 PWM_MSEC(20) PWM_POLARITY_NORMAL> */ /* GP14 */
|
||||
/* <&pwm 15 PWM_MSEC(20) PWM_POLARITY_NORMAL> */ /* GP15 */
|
||||
min-pulse = <PWM_USEC(700)>;
|
||||
max-pulse = <PWM_USEC(2500)>;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user