carreralib 0.10.1
pip install carreralib==0.10.1
Released:
Python interface to Carrera(R) DIGITAL 124/132 slotcar systems
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Thomas Kemmer
- Requires: Python ~=3.7
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
This module provides a Python interface to Carrera(R) DIGITAL 124/132 slotcar systems connected via a serial (cable) connection.
>>> 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-2022 Thomas Kemmer.
Licensed under the MIT License.
Carrera is a registered trademark of Carrera Toys GmbH.
Thanks to Stephan Heß (a.k.a. slotbaer) for doing all the hard work.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Thomas Kemmer
- Requires: Python ~=3.7
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
File details
Details for the file carreralib-0.10.1.tar.gz
.
File metadata
- Download URL: carreralib-0.10.1.tar.gz
- Upload date:
- Size: 43.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5c9b3b17e9dc1472fa85833e16fbc9238e29ae28440be9ccd89566a43221296 |
|
MD5 | 7ec651564a77e1ce97c58fa09aaf4244 |
|
BLAKE2b-256 | f8293658426477f7c1cf3b18a0b215cd656740c0866f9e7b813932683a192602 |
File details
Details for the file carreralib-0.10.1-py3-none-any.whl
.
File metadata
- Download URL: carreralib-0.10.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb6f144699bf650872eeb69386bc67e11a9a658205c33d1f24ec07debd7a9bbd |
|
MD5 | 9551c08662ea47711e5171a1492756c9 |
|
BLAKE2b-256 | 8c75e9ed148d897e73c9314a1603332375f68c072b684ab8721d427c04a896a1 |