Integrating MR Star light into Python
Project description
MR Star BLE 
This library allows you to control BLE devices supported by MR Star application via Python.
Installation
pip install mr_star_ble
Usage
import asyncio
from mr_star_ble import MrStarLight
async def main():
# Find and connect to a MR Star light device
device = await MrStarLight.discover()
await device.connect()
# Set the light state
await device.set_power(False)
await device.set_brightness(0.01)
await device.set_rgb_color((255, 0, 0))
asyncio.run(main())
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
mr_star_ble-0.2.0.tar.gz
(7.3 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
File details
Details for the file mr_star_ble-0.2.0.tar.gz.
File metadata
- Download URL: mr_star_ble-0.2.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54e3c4290c7944064896cfe2ecd4021654678e55d953674427ca51fb40aef506
|
|
| MD5 |
9a043247a3c0628a059664440a9b8001
|
|
| BLAKE2b-256 |
b2a8615f9e16dc8d24650e7fc920ecd30721743e4e7f8e033d20f2f12b5db456
|
File details
Details for the file mr_star_ble-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mr_star_ble-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3203db5a3f762116b0bf6110cd554b19e9fe542eff0add60f4e72b334299dc11
|
|
| MD5 |
c3bc1c18ded5c3bdc20dff70e1716b8c
|
|
| BLAKE2b-256 |
88e1e1a8698351b4d838629ed000f0caa335daeb80e12b9c59f0567c156ce028
|