Metadata-Version: 2.1
Name: mr_star_ble
Version: 0.1.1
Summary: Integrating MR Star light into Python
Author-email: Mikhael Khrustik <misha@myrt.co>
License: MIT
Keywords: light,led,bleak
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: bleak

# MR Star BLE [![Quality assurance](https://github.com/mishamyrt/mr-star-ble/actions/workflows/qa.yaml/badge.svg)](https://github.com/mishamyrt/mr-star-ble/actions/workflows/qa.yaml)

This library allows you to control BLE devices supported by MR Star application via Python.

## Installation

```bash
pip install mr_star_ble
```

## Usage

```python
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())
```
