freedeck-serial-api-0.2.0
توضیحات
A python lib to speak to the FreeDeck over serial
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | freedeck-serial-api-0.2.0 |
| نام | freedeck-serial-api |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kilian Gosewisch |
| ایمیل نویسنده | kilian2798@gmail.com |
| آدرس صفحه اصلی | https://github.com/freeyourstream/freedeck-serial-api-python |
| آدرس اینترنتی | https://pypi.org/project/freedeck-serial-api/ |
| مجوز | MIT |
# freedeck-serial-api
A python library to speak to the FreeDeck.
## Usage
```python
from fdserial.api import FreeDeckSerialAPI
api = FreeDeckSerialAPI()
print("Firmware: %s" % api.getFirmwareVersion())
print("Page Count: %i" % api.getPageCount())
currentPage = api.getCurrentPage()
print("Current Page: %i" % currentPage)
api.setCurrentPage(1)
time.sleep(1)
api.setCurrentPage(currentPage)
```
This will print your firmware version, your number of pages and the current page.
Then it will go to page one, wait a second and go back.
نیازمندی
| مقدار | نام |
|---|---|
| ==3.5 | pyserial |
نحوه نصب
نصب پکیج whl freedeck-serial-api-0.2.0:
pip install freedeck-serial-api-0.2.0.whl
نصب پکیج tar.gz freedeck-serial-api-0.2.0:
pip install freedeck-serial-api-0.2.0.tar.gz