X52
A easy-to-use package to utilize the MFD on the Throttle of the X52 and X52 Pro, with features like displaying text, navigating pages of content and callbacks.
The Package is available on PyPi
Usage Example
from sys import exit
# import necessary items from the x52 package
from x52 import X52, X52Page
# Setup callback functions for later use
def callback_func_1():
print('hello from callback_func_1')
def callback_func_2():
print('hello from callback_func_2')
def callback_func_3():
print('hello from callback_func_3')
# instantiate an X52 Object and initialize it
# if the X52 Object gets garbage collected it gets
# deinitialized
x52 = X52()
x52.init()
x52Devices = x52.get_x52devices()
# Exit if there is no X52 connected
if not x52Devices:
exit(-1)
# Select the first detected device
x52Device = x52Devices[0]
# Create pages using the X52Page Constructor
page1 = X52Page(
('This is Item1', callback_func_1),
('This is Item2', callback_func_2),
('This is Item3', callback_func_3), True)
page2 = X52Page(
('This is a non', None),
('non interactive', None),
('Page, with cycling text', None), False)
# Add pages to the MFD
x52Device.page_add(page1)
x52Device.page_add(page2)
# Endless loop, else program exits
while True:
pass
Metadata
Release files for x52 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| x52-0.0.5.tar.gz | 7.5 kB | Without provenance | Details for x52-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| x52-0.0.5-cp38-cp38-win_amd64.whl | CPython 3.8 | CPython 3.8 | Windows x86-64 | Details for x52-0.0.5-cp38-cp38-win_amd64.whl |
Total release size: 160.6 kB
Release files / x52-0.0.5.tar.gz
| Download URL | x52-0.0.5.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edf6fdef5ae7dc1d1a4632c053b24b3e1559598a731cc9d27d4a4aeb89768a56
|
|
BLAKE2b-256 checksum How to use checksums |
0bcf87766e2461dde4ef7354cc872e76757c50cd19655d53f12c700d9551f215
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / x52-0.0.5-cp38-cp38-win_amd64.whl
| Download URL | x52-0.0.5-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 153.1 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
25a52ce43057e870d8fcb580b6fb065354e0100b803f67fc6fec95e0c1c05dbb
|
|
BLAKE2b-256 checksum How to use checksums |
bd084e44f7e2dc858e9bd0c2e7d80ce247168592001e02d5eb25a88ead27113d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for x52 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.