This project provides a pure Python3 library for interfacing with the LiteJet lighting system.
Setup
- You will need the LiteJet programming software from the Dragon Technologies Programming page.
- Your LiteJet MCP should be configured for 19.2 K baud.
- For firmware versions 5.00 and higher, this setting is configured using the LiteJet software's Settings screen.
- For firmware versions 4.90 and lower, this setting is configured by setting DIP Switch 4 to OFF. Press the RESET button after changing this.
- In the LiteJet software's Settings screen configure it to send "Third Party Carriage Return".
- In the LiteJet software's Lights screen configure each load to announce changes. This is the "Load RS232" checkbox on each load's middle panel.
- Connect the LiteJet's RS232-2 port to your computer.
If you have LiteJet 48 then the RS232-2 port is used to connect the two boards together. So you will need to configure RS232-1 for third party mode by setting DIP Switch 8 to ON and DIP Switch 3 to OFF. Press the RESET button after changing this. (To change RS232-1 back to programming mode, set DIP Switch 8 to OFF.)
Test
- List all buttons and loads:
python3 ./test.py --path /dev/serial0 list -l -b - Monitor button presses and load changes:
python3 ./test.py --path /dev/serial0 monitor - Control a load:
python3 ./test.py --path /dev/serial0 load 1 on
Sample
import asyncio
import pylitejet
async def main():
try:
lj = await pylitejet.open("/dev/serial0")
except pylitejet.LiteJetError as exc:
print(f"Cannot connect: {exc}")
return
await lj.activate_load(1) # on
await lj.deactivate_load(1) # off
await lj.activate_load_at(1, 50, 8) # 50% over 8 seconds
await lj.close()
asyncio.run(main())
Metadata
Release files for pylitejet 0.6.3
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 |
|---|---|---|---|---|
| pylitejet-0.6.3.tar.gz | 13.3 kB | Without provenance | Details for pylitejet-0.6.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylitejet-0.6.3-py3-none-any.whl | Python 3 | none | any | Details for pylitejet-0.6.3-py3-none-any.whl |
Total release size: 20.3 kB
Release files / pylitejet-0.6.3.tar.gz
| Download URL | pylitejet-0.6.3.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c12ebeb0456e7d3eb0b668d4e3ef030a02e4130a20e4a13fca20a93790efaa3b
|
|
BLAKE2b-256 checksum How to use checksums |
3a9fd5bfcdd55ab35d5b2bb10b5f46f2a53776e0bbc941d9298237b00599c0e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / pylitejet-0.6.3-py3-none-any.whl
| Download URL | pylitejet-0.6.3-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
103d5b64d0097a15a07b57b497bca67c9273b3954c95ddc8277ed38d044edcb0
|
|
BLAKE2b-256 checksum How to use checksums |
5cb6f74010f48b04f160d03a1a4add9277f3910f39687deefad9cafd1a1b222c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for pylitejet 0.6.3
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.