# \[마이크로비트] 점화면 (LED 화면)

### 코드

{% code title="점화면을 모두 끌 때" %}

```
@마이크로비트 점화면 초기화
```

{% endcode %}

{% code title="2차원 리스트로 점화면을 그릴 때" %}

```
@마이크로비트 점화면 [2차원 리스트] 그리기
```

{% endcode %}

{% code title="텍스트를 띄우게 할 때" %}

```
@마이크로비트 점화면 "문자열" 띄우기
```

{% endcode %}

***

### 설명

마이크로비트의 점화면(도트매트릭스)를 제어할 때 사용하는 명령어들이에요.

***

### 주의사항

* 차원 리스트로 점화면 전체를 설정할 때에는, 꼭 2차원 리스트(`[ [], [] ]`)을 사용해야 해요.
  * 초기화 리스트는 아래와 같아요.
  * `[[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]`
* 텍스트를 띄울  때 한글과 (영어, 숫자, 일부 특수 문자)를 함께 작성할 수 없어요.

***

### 파이썬 대응 코드

마이크로비트 코드는 파이썬에 대응되는 코드가 없어 제공되지 않아요.

***

### 예시

{% code title="예시 코드1 (영어 띄우기)" %}

```
@마이크로비트 점화면 초기화
@마이크로비트 점화면 "A" 띄우기
```

{% endcode %}

{% code title="예시 코드2 (한글 띄우기)" %}

```
@마이크로비트 점화면 초기화
@마이크로비트 점화면 "안녕!" 띄우기
(마이크로비트에 "ㅇㅏㄴㄴㅕㅇ!"이 순서대로 나온다.)
```

{% endcode %}

{% code title="예시 코드3 (리스트로 점화면 그리기)" %}

```
@마이크로비트 점화면 [
    [0,1,0,1,0],
    [0,1,0,1,0],
    [0,0,0,0,0],
    [1,0,0,0,1],
    [0,1,1,1,0]
] 그리기
```

{% endcode %}

***

### 검색 키워드

도트매트릭스, 세그먼트, 디스플레이, 화면, 마이크로비트, LED화면, 점화면


---

# 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://codebook.horang.it/microbit/037.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.
