zephyr/samples/basic
Martí Bolívar 6bc17e3211 samples: various servo_motor fixes
Though there were issues with this sample before e959386bd2 ("samples:
servo_motor: cleanups and changes"), that commit introduced further
bugs. This happened because the new pwm-servo alias that commit
switched to wasn't provided by any boards, so it wasn't built in CI.

Before that, however, the recommendation to use bbc_microbit in the
sample documentation was also buggy in a couple of ways:

    1. bbc_microbit doesn't have the pwm-0 alias the sample
       previously required, so it didn't build on that board

    2. the documentation's comment to use pin 0 on the edge connector
       is wrong; PWM channel 0 is wired to GPIO P0.0 on the SoC,
       which is actually pin 21 on the connector

Fix it all up.

Tested on bbc_microbit. I verified the pinout and also made sure that
the sample correctly generates pulses from 700 to 2300 usec.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-05-19 17:27:07 +02:00
..
blinky doc: samples: tweak blinky readme 2020-05-13 19:51:01 +02:00
blinky_pwm samples: rename blink_led to blinky_pwm 2020-05-13 19:51:01 +02:00
button samples: button: cleanups 2020-05-13 19:51:01 +02:00
fade_led samples: fade_led: cleanups and fixups 2020-05-13 19:51:01 +02:00
minimal samples: minimal: cleanups 2020-05-13 19:51:01 +02:00
rgb_led samples: rgb_led: cleanups 2020-05-13 19:51:01 +02:00
servo_motor samples: various servo_motor fixes 2020-05-19 17:27:07 +02:00
threads samples: threads: cleanups 2020-05-13 19:51:01 +02:00
basic.rst