代码拉取完成,页面将自动刷新
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 requires 3.7 and above
support Windows
Import related dependency commands
pip install requirements.txt
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)
Import the FeelinLight library and create a 'robot' object
# --*--coding=utf-8--*--
from FeelinLight import feelinlight
robot = feelinlight('robot')
Discovery of device name and IP address
robot.find_devices(10) # Discovery of device service startup time of 10 seconds
Device Name: FeelinLight:937e Device IP address: 192.168.0.68
Device Name: FeelinLight:d4c2 Device IP address: 192.168.0.236
Loading Smart Lamp Robot
robot.ip_list = ['192.168.0.79']
Illuminate a single light
robot.single_lamp(0, 0, 0, 255)
Illuminate a set of lights
robot.single_set(0, 0, 0, 255)
Illuminate the entire circle light
robot.whole_lamp_color(0, 0, 255)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。