Movatterモバイル変換


[0]ホーム

URL:


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

docs/library/machine.Timer: Explain the id parameter in more detail.#18367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
projectgus wants to merge1 commit intomicropython:master
base:master
Choose a base branch
Loading
fromprojectgus:doc/machine_timer_id

Conversation

@projectgus
Copy link
Contributor

Summary

As noted in discussion on#18263, theid parameter is optional on ports that support virtual timers.

Explain this in the docs, and add some more general explanation of hardware vs virtual timers.

This work was funded through GitHub Sponsors.

Testing

Manually checked the ports for which are hardware-only and which are virtual-only:

Explained this in the docs by saying hardware timers are generally available, apart from the two exceptions, and that virtual timers are only available on some ports.

As noted in discussion on PRmicropython#18263, the id parameter is optional on portsthat support virtual timers.Add some more general explanation of hardware vs virtual timers.This work was funded through GitHub Sponsors.Signed-off-by: Angus Gratton <angus@redyak.com.au>
@projectgus
Copy link
ContributorAuthor

@LucienMP Does this explanation make sense to you? I didn't change the signature for the constructor because there are still ports which don't support hardware timers, and on these ports theid argument is required.

@pyramids
Copy link

pyramids commentedNov 5, 2025
edited
Loading

@LucienMP Does this explanation make sense to you? I didn't change the signature for the constructor because there are still ports which don't support hardware timers, and on these ports theid argument is required.

Shouldn't "there are still ports whichdon't support hardware timers" be "there are still ports whichonly support hardware timers"?

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

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@projectgus@pyramids

[8]ページ先頭

©2009-2025 Movatter.jp