# Miscellaneous

In this folder, you will find various useful blocks such as the timer block, chest LED blocks and run until stopped block.

<figure><img src="/files/a82wBdQpk2JG5Heo8RS4" alt=""><figcaption><p>miscellaneous blocks</p></figcaption></figure>

### Timer block

<figure><img src="/files/SwMeIE5Kw0m2eja0iJ4j" alt=""><figcaption><p>wait block</p></figcaption></figure>

If you are new to programming, you will discover that timers are a fundamental component when working with sequences. After you press run, machines typically don't wait to execute all parts of your code unless you tell them to. So if you want to have a smooth and controlled flow of your program, you will need to use the timer block. This block is set in milliseconds, 1000 milliseconds are equal to 1 second.&#x20;

### Chest LED

<figure><img src="/files/7O5Jlc8AHknSk29MFj82" alt=""><figcaption><p>LEDs blocks</p></figcaption></figure>

If you need clear feedback from Misty about the execution of your program, you can rely on the Chest LED. It acts as visual cue or signal that tells you if you've successfully triggered an event. There is a big palette of colors that you can choose from.

<figure><img src="/files/ijXlM4YBvi9chJwgIpqf" alt=""><figcaption><p>colours palette</p></figcaption></figure>

The transition led block allows you to cycle between two different colors. There are a couple of options in the drop-down:&#x20;

* Breath: does the transition gradually with other colors. For example, if you want to go from red to green it will display red, orange, light orange, yellow and green and backwards in the time you set.&#x20;
* Blink does the transition straight between one color and the other.&#x20;

### Log message

<figure><img src="/files/x5zHyNr1YwYxGuYVPjN5" alt=""><figcaption><p>log message block</p></figcaption></figure>

This block allows you to display a message on the console. If you are debugging your code or want to read a specific message on your console this is the block you need to use.&#x20;

### Run until stopped

<figure><img src="/files/OAdZxyFfp9mJ59AFPJN0" alt=""><figcaption><p>run until stopped block</p></figcaption></figure>

When you are working with events you shouldn't forget about this block.&#x20;

This block will continuously repeat your program in a loop until you press the stop button. It's fundamental in an event code because Misty needs to constantly monitor her environment and sensors to detect user input. If you don't put this block at the end of your code Misty will run it only once and even if your program is well done it won't really work.&#x20;


---

# 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://lessons.mistyrobotics.com/blockly-elements/misty-blocks/miscellaneous.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.
