Python interface to Carrera(R) DIGITAL 124/132 slotcar systems
Project description
This module provides a Python interface to Carrera® DIGITAL 124/132 slotcar systems connected via a serial (cable) connection, or via Bluetooth LE using Carrera AppConnect®.
>>> from carreralib import ControlUnit
>>> cu = ControlUnit('/dev/ttyUSB0')
>>> cu.version()
'5337'
>>> cu.poll()
Status(fuel=(14, 14, 14, 14, 14, 14, 0, 0), start=0, mode=6,
pit=(False, False, False, False, False, False, False, False),
display=8)
>>> cu.start()
>>> cu.poll()
Status(fuel=(14, 14, 14, 14, 14, 14, 0, 0), start=1, mode=6,
pit=(False, False, False, False, False, False, False, False),
display=8)
>>> cu.start()
>>> cu.poll()
Timer(address=1, timestamp=105295, sector=1)
>>> cu.poll()
Timer(address=0, timestamp=105410, sector=1)
For demonstration purposes, the carreralib module can also be used from the command line as a simple race management system (RMS).
Please refer to the online documentation for more information.
Installation
carreralib is available from PyPI and can be installed by running:
pip install carreralib
Project Resources
License
Copyright (c) 2015-2023 Thomas Kemmer.
Licensed under the MIT License.
Carrera® and Carrera AppConnect® are registered trademarks of Carrera Toys GmbH.
carreralib is not an official Carrera® product, and is not affiliated with or endorsed by Carrera Toys GmbH.
Thanks to Stephan Heß (a.k.a. slotbaer) for doing all the hard work.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file carreralib-1.0.3.tar.gz.
File metadata
- Download URL: carreralib-1.0.3.tar.gz
- Upload date:
- Size: 45.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72cda63d3573c4d4e76ac29484fd42a118e4f1e9f54c9799a1701b77bd3392c4
|
|
| MD5 |
bba64826f36f4dbbbce9b86b4f900b44
|
|
| BLAKE2b-256 |
15464ca5ffa5fe104a53a935326146ae502dfbc8423aa3f9a558ee623f3e5df7
|
File details
Details for the file carreralib-1.0.3-py3-none-any.whl.
File metadata
- Download URL: carreralib-1.0.3-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32783392f8ecd2c5e60fb89d5080387f5608a5222fbba73bc8281ce1aa389385
|
|
| MD5 |
d2b3134af04ec081f7a0163387d50fd3
|
|
| BLAKE2b-256 |
ae03569bb5e2368f1a87c28768eed8d8a54f70659b73b477e5b6351a7eadaf40
|