microsoft / microsoft/pxt-microbit
Servo extension: add support for other pins
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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