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

# Strobe Lights

Microbit and Connected Wire

We have used the Repeat blocks to make the same action happen more than one time.  Now we want to explore the idea of NESTED repeats - what happens when we but one repeat block inside of another?

```
//Consider this Code
Repeat 5 
    Say Hello
    Repeat 2
        Say How Are You?
        
```

How many times will this code say Hello? How  many times will this code say How are you?

We are going to use Repeat Blocks to "light up" each of the lights on the LED using the x and y coordinates. We need to create two variables and set their values equal to 0 when the program starts

![](https://2507214486-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpUPSf3tCxHePJxNjfg%2F-LrtoSRXHNb99ek8ewTp%2F-Lrtoib6V8fj-GM2rPGW%2Fscroll-hello.gif?alt=media\&token=8c18ceee-5b18-4e5e-a739-8b8b7a869607)

```
On Start
    xPoint = 0
    yPoint = 0
```

This assignment and instructions taken directly from <https://makecode.microbit.org/lessons/strobe-light/challenges>&#x20;
