carreralib 0.6.0
pip install carreralib==0.6.0
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
- Tags carrera, digital, slotcar, control, unit, cu
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 serial port or Bluetooth.
>>> from carreralib import ControlUnit
>>> cu = ControlUnit('/dev/ttyUSB0')
>>> cu.version()
b'5331'
>>> cu.request()
Status(fuel=(15, 15, 15, 15, 15, 15, 0, 0), start=0, mode=6,
pit=(False, False, False, False, False, False, False, False),
display=8)
>>> cu.start()
>>> cu.request()
Status(fuel=(15, 15, 15, 15, 15, 15, 0, 0), start=1, mode=6,
pit=(False, False, False, False, False, False, False, False),
display=8)
>>> cu.start()
>>> cu.request()
Timer(address=1, timestamp=243019, sector=1)
>>> cu.request()
Timer(address=0, timestamp=245704, sector=1)
For Bluetooth access you will need the Carrera AppConnect(R) adapter, a Bluetooth Low Energy compatible device, and bluepy installed, which is only available for Linux. A serial connection should work on all platforms supported by pySerial.
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
Install carreralib using pip:
pip install carreralib
Project Resources
License
Copyright (c) 2015-2017 Thomas Kemmer.
Licensed under the MIT License.
Carrera and Carrera AppConnect are registered trademarks of Stadlbauer Marketing + Vertrieb 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
- Tags carrera, digital, slotcar, control, unit, cu
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.6.0.tar.gz
.
File metadata
- Download URL: carreralib-0.6.0.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99808d09e425a7b8fdf3dab5139c92f7efbeb0750d79a94c24e2a6d48d16e87a |
|
MD5 | 100e5d7b8e0c4e16eef9db86fde16ece |
|
BLAKE2b-256 | 0d52e105eb4dbcc7dfa9af681cb3a0a4121a32a1966b5254ec9d391872b20160 |
File details
Details for the file carreralib-0.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: carreralib-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2839f460833fe7c0b45b169e68eb9dc539af59f7ecdebae889d80cd763286409 |
|
MD5 | 182f94b382c29dbc83fe74922b4ed3b5 |
|
BLAKE2b-256 | f87eab61550bceba11693e10430e1e5e484b14959034af5bced2b9fa3cc37217 |