LEGO® Education SPIKE™ Prime MicroPython Code:

import motor, time from hub import port motor.run(port.A, 1000) # Start motor time.sleep_ms(10000) # Wait for 10 seconds motor.stop(port.A) # Stop motor from js import write_pyrepl def run_code(): write_pyrepl()
Made on pyscript.com │ View Code