Approved content
The content below is provided by a partner.

The NeZha V2 Expansion Pack is tailored for the micro:bit, aimed at stimulating students’ innovative thinking and practical skills. This guide facilitates programming and control of the NeZha V2 Expansion Board, enabling functions such as motor control and sensor integration. To purchase the NeZha V2, visit the Elecfreaks Official Store.
Block Editor Example
JavaScript Example
input.onButtonPressed(Button.A, function () {
NEZHA_V2.nezha2MotorStart(MotorPosition.M1, MovementDirection.CW);
});
// Example code omitted; add logic here for Button B controlling different motors
Block Editor Example
JavaScript Example
input.onButtonPressed(Button.B, function () {
NEZHA_V2.goToAbsolutePosition(MotorPosition.M1, ServoMotionMode.CW, 0);
});
Delve into advanced functionalities like motor speed regulation and sensor data retrieval. For detailed examples and instructions, visit our online tutorials.
For implementation details of blocks and examples of new features, please check the files in the “examples” directory.
This extension is licensed under the MIT License.
nezha2=github:elecfreaks/pxt-nezha2#v1.2.2