Skip to content
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

Extension: add Yahboom tinybit #4419

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Extension: add Yahboom tinybit #4419

wants to merge 1 commit into from

Conversation

microbit-mark
Copy link
Contributor

@microbit-mark
Copy link
Contributor Author

This extension has a duplicate function for each board version
Screenshot2021_11_02_125223

Is this the best approach @abchatra ? I wonder if they should put this in a ‘micro:bit V2’ category at least.

Or could they even detect the board version as part of the function using control.hardwareVersion() and only have one block?

@abchatra
Copy link
Contributor

abchatra commented Nov 3, 2021

This is not the right way. Please make one block and use "control.hardwareVersion()" api inside the implementation to change the behavior if it is less than 2 or great greater than equal to 2. This returns a string "1.X" for anything less than 2

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