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.4.1.tar.gz (10.5 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.4.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file mr_star_ble-0.4.1.tar.gz.

File metadata

  • Download URL: mr_star_ble-0.4.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for mr_star_ble-0.4.1.tar.gz
Algorithm Hash digest
SHA256 cc939bf246e9e26d358fce5e64e0e581e329966de8a292cf5bb52b1d74de4504
MD5 4b04e877804fe50c113ea8839e2f7c74
BLAKE2b-256 8cacfa230c5310e2f9b10f47863b909c9d0fd96271a96295229c75839e3c5046

See more details on using hashes here.

File details

Details for the file mr_star_ble-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: mr_star_ble-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for mr_star_ble-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47dcec932a6f5b33704b4a91f5e4be8b4372683656d9fcfc43b81efbfaf7f675
MD5 d0a0a737646146bb6f7a481d0b6ea015
BLAKE2b-256 7dd935fcc74f6dadf1845e34a118d5171f9fd506ab9e3cc11c1a823c56c4a85f

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