Library for communicate with led string controller
Project description
LEDSC Python library
Library for communicate with ledsc.
Examples
Setting colors
import time
import logging
from pymodbus.client import ModbusSerialClient
from ledsc import LedSC
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
modbus_client = ModbusSerialClient(port='/dev/ttyUSB1', baudrate=19200)
lsc = LedSC(modbus_client=modbus_client, unit=1)
lsc.set_transition_time(0.1)
lsc.set_white(100)
time.sleep(2)
lsc.set_rgbw(red=100, green=20, blue=40, white=0)
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
ledsc-1.0.6.tar.gz
(3.2 kB
view details)
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
ledsc-1.0.6-py3-none-any.whl
(3.4 kB
view details)
File details
Details for the file ledsc-1.0.6.tar.gz.
File metadata
- Download URL: ledsc-1.0.6.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16fd7b06d7a22c22ee0a0f0e38ae13ff23b929d1b0d8017d2b223d33d94a7bb3
|
|
| MD5 |
5ec200b6d7d4e3353c5c30f9038f742d
|
|
| BLAKE2b-256 |
9519e846d7b631ff91a80710904eda31d41ae8ef2fd4830eaca49a70a811154b
|
File details
Details for the file ledsc-1.0.6-py3-none-any.whl.
File metadata
- Download URL: ledsc-1.0.6-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b809aec7c877f8417623593b0dc13d6c6e05474c4c27ac3187dc05b3229eb69
|
|
| MD5 |
f3fce465e0b9ce774139c82e73fa74db
|
|
| BLAKE2b-256 |
e59bceb9ebd3278a1cd3dab9f2920d54970896a35a27ae7443afca0f7520ab8d
|