zephyr/samples/basic
Gerard Marull-Paretas 9e964d0a61 samples: basic: servo_motor: use pwm_dt_spec
The sample did not use PWM in a proper way: it relied on a PWM device
handle, but channel or flags were hardcoded in the code. This patch
changes the sample to use a local binding ("pwm-servo") where the `pwms`
property is defined. This allows to make use of pwm_dt_spec facilities,
reducing the overall sample complexity and making it more portable
without editing the source code. The custom binding also requires to
provide the minimum/maximum pulse width so that different servos can be
easily plugged in without the need to edit sources.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-04-28 11:29:38 +02:00
..
blinky doc: Fix links to Zephyr include directory on Github 2022-04-21 18:35:16 -04:00
blinky_pwm samples: basic: blinky_pwm: use pwm_dt_spec 2022-04-28 11:29:38 +02:00
button cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
fade_led samples: basic: fade_led: use pwm_dt_spec 2022-04-28 11:29:38 +02:00
minimal samples: Take into account PINCTRL in minimal configurations 2021-12-21 18:30:35 +01:00
rgb_led samples: basic: rgb_led: use pwm_dt_spec 2022-04-28 11:29:38 +02:00
servo_motor samples: basic: servo_motor: use pwm_dt_spec 2022-04-28 11:29:38 +02:00
threads cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
basic.rst