# \[햄스터로봇] 부저 설정하기

### 코드

```
@햄스터 부저 (값) 설정하기
```

***

### 설명

* 햄스터로봇이 부저 주파수를 설정해 소리를 낼 때 사용해요.

***

### 주의사항

* 너무 높은 주파수는 불쾌한 소리로 들릴 수 있어요.
* 실습 환경 소음에 주의해요.

***

### 파이썬 대응 코드

```
from roboid import *
hamster = Hamster()
hamster.buzzer(440)
```

***

### 예시

{% code title="예시 코드" %}

```
@햄스터 부저 440 설정하기
1초 기다리기
@햄스터 부저 0 설정하기
```

{% endcode %}

{% code title="예시 코드의 결과" %}

```
(햄스터로봇이 1초 동안 440Hz 소리를 출력한 뒤 멈춰요.)
```

{% endcode %}

***

### 검색 키워드

햄스터로봇, 부저, 소리


---

# 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/undefined/undefined-6.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.
