用于Embrava Blynclight设备的Python语言绑定。

blynclight的Python项目详细描述


Latest version released on PyPiApache license version 2.0Python Versions

blynclight是一个python 3包,它为 Embravablynclight产品系列。这些绑定 使用Embrava V30 USB连接指示灯在MacOS和Linux上进行测试。

安装

  1. 为您的平台安装hidapi
(rpm Linux distros)# yum install XXXX
(apt Linux distros)# apt-get install XXXX
(macOS using brew) $ brew install hidapi
$ pip3 install blynclight
  1. 克隆存储库
$ git clone https://github.com/JnyJny/blynclight.git
$ cd blynclight; pip3 install -e .

开发

$ pip install poetry
$ git clone https://github.com/JnyJny/blynclight.git
$ cd blynclight
$ poetry shell
$ ..

卸载

$ pip3 uninstall blynclight

用法

一旦安装,blynclight是你的命令!

fromblynclightimportBlyncLightlight=BlyncLight.get_light()red,blue,green=(255,0,0),(0,255,0),(0,0,255)light.color=green# the light is off and greenlight.on=True# the light is on and greenlight.flash=True# the light is on, flashing and greenlight.color=red# the light is on, flashing and redlight.flash=False# the light is on and redlight.bright=False# the light is on, dim and redlight.color=blue# the light is on, dim and bluelight.bright=True# the light is on and bluelight.on=False# the light is off and blue

安装blynclight时提供了几个命令行接口:

  • blync
    提供对所有灯光属性的命令行访问。
  • fli
    闪烁灯光。令人印象深刻。
  • 彩虹
    平滑地变换彩虹图案中光的颜色。
  • 悸动
    危险地降低颜色强度,然后后退。一遍又一遍。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java动态地将圆添加到Arraylist   什么是好的“错误检查”模式(Java)?   java是我们可以在应用程序中使用的云服务,它需要存储最大大小为5MB的小文件   JavaGooglePhotosAPI是静态内容上传项目的永久url   java AES密钥存储   java文件正在下载,但没有任何内容   每次循环迭代和threadsleep的java日志记录都是不好的做法?   java不会切换到另一个。单击submit时使用jsp。春季mvc   java我很难从我的maclaurin系列中获得sin x的准确输出   java使用类似的<Object>?   需要java Hibernate映射吗?   java如何在https和客户端证书请求后面生成web服务代理   java如何通过注释有条件地使用自定义JsonSerializer   java如何在html页面和Restful WebResource方法之间实现JaxB?   读取文件Libgdx Android时发生java错误   java如何在处理主活动之前从另一个方法中获取值?   java在一个SQLquery中使用多个语句,还是使用批处理?