Import Hex profile (How to import?) , or click“New Project”and drag
blocks step by step(add MecanumRobot extension library first)
(How to add MecanumRobot extension?)
(5)Test Code:
KS4031(4032) folder/Makecode
Tutorial/Makecode Code/Project
18.1: Ultrasonic Ranging.hex
Project 18.1:
Ultrasonic Ranging.hex
Or you could edit code step by step in the editing area.
(1)Tap“Advanced”→“Serial” →“serial redirect to USB”
Combine it with“on start”block
(2)Click“Advanced”→“Serial” to find and drag“serial write value x=0”
into“forever”; Click“MecanumRobot”to find and drag“Ultrasonic”to the