Skip to main content

Python library for communication with Carrera Digital 124/132 Control Unit

Project description

Python library for communicating with a Carrera Digital 124/132 Control Unit.

>>> from carreralib import ControlUnit
>>> cu = ControlUnit('D4:8B:C6:FC:D8:07', timeout=1.0)
>>> cu.version()
'5331'
>>> cu.start()
>>> cu.status()
Status(fuel=(15, 15, 15, 15, 15, 15, 0, 0), start=1, mode=6, pit=0)
>>> cu.start()
>>> cu.status()
Status(fuel=(15, 15, 15, 15, 15, 15, 0, 0), start=2, mode=6, pit=0)
>>> cu.status()
Status(fuel=(15, 15, 15, 15, 15, 15, 0, 0), start=3, mode=6, pit=0)
>>> cu.status()
Status(fuel=(15, 15, 15, 15, 15, 15, 0, 0), start=4, mode=6, pit=0)
>>> cu.status()
Status(fuel=(15, 15, 15, 15, 15, 15, 0, 0), start=0, mode=6, pit=0)
>>> cu.status()
Lap(car=2, time=742236, timer=0)

This project is in early development; more information coming soon…

Installation

Install carreralib using pip:

pip install carreralib

Project Resources

Latest PyPI version Number of PyPI downloads

License

Copyright (c) 2015 Thomas Kemmer.

Licensed under the MIT License.

Project details


Download files

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

Source Distribution

carreralib-0.1.0.tar.gz (5.3 kB view hashes)

Uploaded Source

Supported by

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