microsoft / microsoft/pxt-microbit

Servo extension: add support for other pins

Open
#5,105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

apis extension
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

Is your feature request related to a problem? Please describe.
Arising from support ticket https://support.microbit.org/helpdesk/tickets/62403

The Servo extension is very useful, but only supporting pins P0, P1 and P2 is very restrictive.

Servos could use many other pins, when other things must be connected P0, P1 or P2.

Describe the solution you'd like
Add all possible pins to the pin menu, similar to servo write pin in Pins.

Describe alternatives you've considered
Other pins can be used from the blocks in Pins, but they lack the features of the Servo extension, especially in relation to continuous servos and the simulator.

Additional context
Related: https://github.com/microsoft/pxt-microbit/issues/4063

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Servo extension's pin menu and the Pins implementation of “servo write pin,” then review how continuous servos and the simulator are handled. Done means the Servo extension exposes all supported pins while retaining its continuous-servo features and simulator behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.