pxt icon indicating copy to clipboard operation
pxt copied to clipboard

Dropdown menu vs. variable

Open nevergone opened this issue 1 year ago • 4 comments

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: https://github.com/microsoft/pxt-microbit/issues/5558

nevergone avatar May 16 '24 16:05 nevergone

I created pull requests for this (https://github.com/microsoft/pxt-microbit/pull/5700).

sae220 avatar May 29 '24 05:05 sae220

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

nevergone avatar May 29 '24 17:05 nevergone

Just checking for equality doesn't seem to work.

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

Screenshot_20240529-210920

nevergone avatar May 29 '24 19:05 nevergone

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

sae220 avatar May 30 '24 01:05 sae220

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

abchatra avatar Oct 01 '24 17:10 abchatra