dfrobot/pxt-maqueen ? reverse-engineered prompt

Reverse engineered prompt

Build me a MakeCode extension for the Maqueen educational robot that works with micro:bit. I want simple blocks and functions for driving the two motors forward, backward, and stopping, setting motor speed and direction, reading the ultrasonic distance sensor, moving a servo, checking the line tracking sensors, turning the left and right LEDs on or off, and reading the IR sensor plus its version string.

Please make it feel easy for beginners, with clear names and examples that match how someone would actually use the robot in a classroom. If anything is unclear, look up the current MakeCode docs online and follow the usual pattern for micro:bit extensions. Also include the basic package setup and the low level pieces needed so the blocks work properly.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab