Skip to main content

Integrating MR Star light into Python

Project description

MR Star BLE Quality assurance

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mr_star_ble-0.2.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for mr_star_ble-0.2.0.tar.gz
Algorithm Hash digest
SHA256 54e3c4290c7944064896cfe2ecd4021654678e55d953674427ca51fb40aef506
MD5 9a043247a3c0628a059664440a9b8001
BLAKE2b-256 b2a8615f9e16dc8d24650e7fc920ecd30721743e4e7f8e033d20f2f12b5db456

See more details on using hashes here.

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

Hashes for mr_star_ble-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3203db5a3f762116b0bf6110cd554b19e9fe542eff0add60f4e72b334299dc11
MD5 c3bc1c18ded5c3bdc20dff70e1716b8c
BLAKE2b-256 88e1e1a8698351b4d838629ed000f0caa335daeb80e12b9c59f0567c156ce028

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page