Skip to main content

A python lib to speak to the FreeDeck over serial

Project description

freedeck-serial-api

A python library to speak to the FreeDeck.

Usage

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freedeck-serial-api-0.2.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

freedeck_serial_api-0.2.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page