Skip to content

Mindstorms EV3 (Micro Python) - Motor.run() not working #13029

Closed Answered by dlech
DylDevs asked this question in Other
Discussion options

You must be logged in to vote

FYI, the best place to ask for help with Pybricks is https://github.com/orgs/pybricks/discussions.

Technically, it doesn't have to be in a while loop. You just need something that makes sure that the program does not reach the end. Motors are stopped when the program reaches the end. run_time() works because it blocks program execution for some amount of time. But run() does not block program execution, so the program ends immediately and stops the motors.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dlech
Comment options

Answer selected by DylDevs
@DylDevs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Other
Labels
None yet
2 participants