Microsoft MakeCode

Tutorial for the color sorter

Hi! I wonder if anyone has a tutorial for the color sorter where you save the colors and where its going in a list and then sort it to different cups after all colors are scanned. (Like theexisting example/tutorial in Labview, but with makecode).

We haven’t migrated the color sorter yet. Here are some of the core set programs we built in the past: . Unfortunately I don’t have a color sorter at hand so I can translate the code but won’t be able to test it.

It would look like something like this: You’d probably want to break it all down in functions (or switch to JavaScript) to make easier to read.

Stupid question maybe, but theese are not supposed to be empty I presume…
On button pressed - else if current color = color