1 Star 0 Fork 0

kittle.liang / Feelin_Light_Q1_Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Feelin Light Q1 open-source project for atmosphere lighting

Document version management

Serial Number content version update time Update personnel
002 Add device discovery function 1.1 2023.5.12 kittle.liang
001 Initial version v1.0 2023.5.10 kittle.liang

Python version and related dependency packages

  1. Python version requires 3.7 and above

  2. support Windows

  3. Import related dependency commands

    pip install requirements.txt

Example

Description: Control two Feelin Light Q1 intelligent light robots to turn on the entire circle of blue light

# --*--coding=utf-8--*--
from FeelinLight import feelinlight

robot = feelinlight('robot')
robot.ip_list = ['192.168.0.68', '192.168.0.234'] # Need to change to the correct LAN IP address of the device
robot.whole_lamp_color(0, 0, 255)
Library usage instructions:
  1. Import the FeelinLight library and create a 'robot' object

    # --*--coding=utf-8--*--
    from FeelinLight import feelinlight
    
    robot = feelinlight('robot')
  2. Discovery of device name and IP address

    1. Default parameter: 5 seconds, modifiable, representing the delay in discovering devices
    robot.find_devices(10) # Discovery of device service startup time of 10 seconds
    1. output
    Device Name FeelinLight:937e Device IP address 192.168.0.68
    Device Name FeelinLight:d4c2 Device IP address 192.168.0.236
  3. Loading Smart Lamp Robot

    1. Supports single and multiple devices
    2. Add the IP address of the device to the device list
    robot.ip_list = ['192.168.0.79']
  4. Illuminate a single light

    1. Parameter 1: Which RGB light bead to light up, value range: 0-95
    2. Parameter 2: Red, value range: 0-255
    3. Parameter 3: Green, value range: 0-255
    4. Parameter 4: Blue, value range: 0-255
    robot.single_lamp(0, 0, 0, 255) 
  5. Illuminate a set of lights

    1. Parameter 1: Which set of RGB light groups to light up, value range: 0-15
    2. Parameter 2: Red, value range: 0-255
    3. Parameter 3: Green, value range: 0-255
    4. Parameter 4: Blue, value range: 0-255
    robot.single_set(0, 0, 0, 255)
  6. Illuminate the entire circle light

    1. Parameter 1: Red, value range: 0-255
    2. Parameter 2: Green, value range: 0-255
    3. Parameter 3: Blue, value range: 0-255
    robot.whole_lamp_color(0, 0, 255)

空文件

简介

Feelin Light Q1 open-source project for atmosphere lighting 展开 收起
Python
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/xinvaleong_admin/Feelin_Light_Q1_Python.git
git@gitee.com:xinvaleong_admin/Feelin_Light_Q1_Python.git
xinvaleong_admin
Feelin_Light_Q1_Python
Feelin_Light_Q1_Python
master

搜索帮助