X & Y Coordinates increment

We want to top row of the microbit LEDs to Light up from Left to Right

When Button A is Pressed
    set xPoint to 0
    Repeat 5x
        plot xPoint, 0
        xPoint = xPoint + 1
        pause 500ms
    

By increasing the value of xPoint with each repeat, we are "moving" the light to the next point on the LED graph.

What happens if you change the Y value to a number greater than 0?

Now change the code so that instead of moving incrementally across, have it move up and down

TIP: if across is the X point might Y be the horizontal point?

Last updated