From b609031ef0bc0e5db4d9715e54c6f4a217e4a30d Mon Sep 17 00:00:00 2001 From: Aritz Herrero <aritzherrero4@gmail.com> Date: Sat, 10 Apr 2021 10:50:31 +0200 Subject: [PATCH] Bump version to v1.2.0 Changelog: + Update readme + Add multidevice support. #3 + Improve the speed of fast succeding messages by not waiting for replies. #5 --- README.md | 6 +++++- setup.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e22993c..94cbc7c 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This will install all the dependencies used by this package and ``pexpect``, an ### Connexion handling * ``connect(MAC)``: Connect to the device with the mac address specified. - +* ``connect(MAC, False)``: Connect to the device with the mac address specified and dont reset previous connections for using multiple devices at once. * ``disconnect(device)``: Disconnects from the specified device. ### LED Control @@ -38,6 +38,10 @@ This will install all the dependencies used by this package and ``pexpect``, an * ``setBuiltIn(mode: int, speed: int, device)``: Activates the selected predefined built-in mode at the selected speed (0-255). The built modes go from 37 to 56. +All the functions do not wait for any response from the device by default. This can be overriden by adding an aditional argument set to True. + +* ``powerOn(device, True)``: Powers on the device, the LEDs will turn on and waits for a reponse. + ## Example use The unittest code available in [tests/test.py](https://github.com/Aritzherrero4/python-trionesControl/blob/master/tests/test.py) can be used as a sample to use the available functions of the package. You can test your bulb / LED strip by using the following code too. diff --git a/setup.py b/setup.py index 33afef1..64adfe7 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="trionesControl", - version="1.1.0", + version="1.2.0", author="Aritz Herrero", description="Simple python package to control smart lights using the Triones porotocol", long_description=long_description,