Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Start motor with speed argument#221

Open
NickAger wants to merge 1 commit intoRaspberryPiFoundation:main from
NickAger:patch-1
Open

Start motor with speed argument #221
NickAger wants to merge 1 commit intoRaspberryPiFoundation:main from
NickAger:patch-1

Conversation

@NickAger
Copy link

@NickAger NickAger commented Jan 6, 2026

found I needed motor.start(50) for the Lego train motor to run; with no arguments the motor didn't run and I thought there was an issue with the code, the motor or the BuildHat.

found I needed `motor.start(50)` for the Lego train motor to run; with no arguments the motor didn't run and I thought there was an issue with the code, the motor or the BuildHat.
Copy link
Contributor

The default speed is 20 if nothing is provided. Does it do the same thing if you put in .start(20) instead of .start(50) ?

Copy link
Author

NickAger commented Jan 9, 2026

More testing of the motor:

speed works
20
28
29
30
50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /