Skip to main content

Python lib to interact with RadioMaster TX16s

Project description

PyTX16s

Python lib to interact with RadioMaster TX16s.

Probably works on other RC`s, needs to be tested.

Installation

The most important thing is that the HID API is installed in the system. For Windows, it is enough to download the hidapi-win.zip archive of the latest version and transfer the DLL file to the Windows\System32 folder. For other systems, there are instructions in the repository of the driver itself.

Python 3.x and Python HID Api(already in dependencies) is required (tested on Python 3.11 and newer).

pip install PyTX16s

also poetry can be used to work with sources:

poetry install

Basic Usage

Connect controller to PC, then instantiate a Joystick class. It must detect your controller automatically, otherwise - it will be prompt provided with connected devices list in your shell and you will be able to choose it manually.

import logging
from pytx16s import Joystick

logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')

device = Joystick()

while True:
    print(device.get_device_report())

Package distribution notes

There are just notes to self for updating the pypi distribution

  • Update the release number in pyproject.toml and commit to repo.
  • Draft a new release in github using the same release number.
  • Run poetry build
  • Publish the distribution to pypi: poetry publish

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytx16s-1.0.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file pytx16s-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pytx16s-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.6 Windows/10

File hashes

Hashes for pytx16s-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86282315100e81dedae4aefb516b1202db205fab9020d7db827f6ec10c5bb74e
MD5 73b97c88a3dbfc2761f9b0ad597bf105
BLAKE2b-256 e2fcc5d13fff7837402917abd424cf58f915217796856917896b3dc82b1404df

See more details on using hashes here.

Supported by

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