Skip to content

Commit

Permalink
Bump version to v1.2.0
Browse files Browse the repository at this point in the history
Changelog:
+ Update readme
+ Add multidevice support. #3
+ Improve the speed of fast succeding messages by not waiting for replies. #5
  • Loading branch information
Aritzherrero4 committed Apr 10, 2021
1 parent a887957 commit b609031
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b609031

Please sign in to comment.