# pyblebb

### 설치

```powershell
pip install pyblebb
```

### 샘플 코드

파이썬에서 비트블록을 블루투스로 연결하기위해서는 비트블록의 MAC 주소를 알고 있어야 한다. MAC주소를 확인하는 방법은 [MAC 확인방법](/manual/python/mac.md)을 참고하세요.

```python
from bitblock import *

# MAC 주소가 "48:27:E2:38:39:81" 의 경우 
# "39:81"만 입력하거나,  
# "48:27:E2:38:39:81" 전체를 입력 가능) 
# address = '48:27:E2:38:39:81
address = '39:81' 

board = Bitblock(address)
ret = board.connect()

rccar = board.rccar_init()

for i in range(10):
    rccar.move_forward(100)
    wait(1000)
    rccar.stop()
    rccar.move_backward(100)
    wait(1000)
    rccar.stop()
```

### 라이브러리 API 문서

pyblebb 라이브러리의 사용방법은 아래 링크를 참고하세요.

{% embed url="<https://github.com/devdio/bitblock_tutorial/wiki/0.%ED%8A%9C%ED%86%A0%EB%A6%AC%EC%96%BC>" %}


---

# 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://moyalab.gitbook.io/manual/python/python_download.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.
