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

Dropdown menu vs. variable #10015

Closed
nevergone opened this issue May 16, 2024 · 5 comments
Closed

Dropdown menu vs. variable #10015

nevergone opened this issue May 16, 2024 · 5 comments

Comments

@nevergone
Copy link

Where there is a dropdown menu, why can't you put a variable there? It would help children a lot in learning proper programming.

Related issue: microsoft/pxt-microbit#5558

@sae220
Copy link
Contributor

sae220 commented May 29, 2024

I created pull requests for this (microsoft/pxt-microbit#5700).

@nevergone
Copy link
Author

nevergone commented May 29, 2024

Hey @sae220, this great work. But can you improve on this?
Screenshot_20240529-185850

@nevergone
Copy link
Author

Just checking for equality doesn't seem to work.

let test1 = DigitalPin.P0
let test2 = DigitalPin.P1
if (test1 == test2) {
	
}

Screenshot_20240529-210920

@sae220
Copy link
Contributor

sae220 commented May 30, 2024

Sorry, but I can't solve this problem soon.
This doesn't seem a specific problem in pins but in all enums (e.g. blocks in Minecraft).
But I think it doesn't need to be solved because it works well when it is not obviously inequal.

variablePinParam_2

@abchatra
Copy link
Collaborator

abchatra commented Oct 1, 2024

Pins issues are fixed in microbit. Please test and let us know

@abchatra abchatra closed this as completed Oct 1, 2024
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

No branches or pull requests

3 participants