Open this page at https://purpl3-cat.github.io/microbit-motor-controller-v2/
The power from P0 isn't enough to actually power the motor I used. A transistor is required to have enough power to make it work (see the PDF).
My engineering teacher asked me to control a Vex motor with the micro:bits is the classroom. I obliged.
This repository can be added as an extension in MakeCode.
- open https://makecode.microbit.org/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/purpl3-cat/microbit-motor-controller-v2 and import
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/purpl3-cat/microbit-motor-controller-v2 and click import
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.
- for PXT/microbit