Необходимо е да се абонирате за FLLCasts.com, за да достъпите това видео
- #2585
- 06 Feb 2026
"Program the robot to raise its arm 90 degrees in 1 second."
from hub import port import runloop import motor, time async def main(): # write your code here # Start motor motor.run(port.D, 90) # Wait for 2 seconds time.sleep_ms(1000) # Stop motor motor.stop(port.D) runloop.run(main())
"Program the robot to raise its arm 90 degrees in 2 seconds."
from hub import port import runloop import motor, time async def main(): # write your code here # Start motor motor.run(port.D, 45) # Wait for 2 seconds time.sleep_ms(2000) # Stop motor motor.stop(port.D) runloop.run(main())
"Program your robot to hand you its cup with the "run_for_time()" command."
from hub import port import runloop import motor async def main(): # write your code here await motor.run_for_time(port.D, 45, 2000) runloop.run(main())