# 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?

##


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://computational-thinking-in-room11.gitbook.io/room-112-dhs/software-development/strobe-lights/x-coordinates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
