Metadata-Version: 2.1
Name: freedeck-serial-api
Version: 0.2.0
Summary: A python lib to speak to the FreeDeck over serial
Home-page: https://github.com/freeyourstream/freedeck-serial-api-python
Author: Kilian Gosewisch
Author-email: kilian2798@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown

# 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.


