Skip to content

docs: Add microbit.scale(value, from_, to) function. #762

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

@@ -31,6 +31,22 @@ Functions
:returns: The number of milliseconds since the board was switched on or
restarted.

.. py:function:: scale(value, from, to)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately from is a keyword in Python so cannot be used as an argument name.

How about from_?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I can't think of a better word, so from_ looks like it might be the best option. 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll use from_.

@microbit-carlos microbit-carlos changed the title docs: Add microbit.scale(value, from, to) function. docs: Add microbit.scale(value, from_, to) function. Aug 23, 2022
@microbit-carlos microbit-carlos marked this pull request as ready for review August 23, 2022 12:01
@microbit-carlos microbit-carlos merged commit 1435b6a into bbcmicrobit:master Aug 31, 2022
@microbit-carlos microbit-carlos deleted the docs-scale branch August 31, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants