8000 GitHub - affix/mr-star-ble: 🌈 MR Star RGB ledstrip support for Python
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

affix/mr-star-ble

 
 

Folders and files

NameName
Last commit message
Last commit 8000 date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🌈 MR Star RGB ledstrip support for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.4%
  • Makefile 3.6%
0