> 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/nesting.md).

# Nesting

Can we write code that would count across EACH row on the LED grid instead of just one?

```
When A Button Pressed
    xPoint = 0
    yPoint = 0
    Repeat 5x
        Repeat 5x
        
       
```

What do we want to repeat?

```
        move accross 1 Row 
        reset xPoint to 0
        move accross the next row down
        and on 
        and  on 
        until we have lit up every light on the LED screen in order
```
