pxt
pxt copied to clipboard
Dropdown menu vs. variable
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
I created pull requests for this (https://github.com/microsoft/pxt-microbit/pull/5700).
Hey @sae220, this great work. But can you improve on this?
Just checking for equality doesn't seem to work.
let test1 = DigitalPin.P0
let test2 = DigitalPin.P1
if (test1 == test2) {
}
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.
Pins issues are fixed in microbit. Please test and let us know