26. Case 24: The Top Emitter¶
26.3. Materials Required¶
26.4. Bricks build-up¶
26.5. Hardware Connection¶
Connect a motor to M1, and the servo to S1 ports on Wukong breakout board.
26.7. Coding¶
Add extensions¶
Click “Advanced” in the MakeCode to see more choices.
Search with Wukong in the dialogue box to download it.
Program¶
Result¶
Place the gyro in the acceleration position, when the button A is pressed (long press) , the bottom baffle will support the small gyro on the baffle to accelerate the rotation; release the A button, the bottom baffle will move to the right, and the gyro falls off, then the motor will stop rotating.