> For the complete documentation index, see [llms.txt](https://computational-thinking-in-room11.gitbook.io/room-112-dhs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://computational-thinking-in-room11.gitbook.io/room-112-dhs/software-development/strobe-lights/x-coordinates.md).

# X & Y Coordinates increment

We want to top row of the microbit LEDs to Light up from Left to Right&#x20;

```
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&#x20;

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

##
