Comments (3)
Hey thanks for the bug report, do you have a code snippet that demonstrates what you doing?
My first thought going by the debug output (thank you!) is the speed value isn't set correctly.
Per the docstring for blynclight.BlyncLight
:
| Command Word Documentation
| ==========================
|
|
| The Embrava BlyncLight command word bit fields are:
| ...
| speed : 3 0==off 1==low 2==medium 4==fast
| ...
To increase the rate of flash you would write:
light.flash = 1
light.speed = 0 # off regardless of flash
light.speed = 1 # slow (1<<0)
light.speed = 2 # medium (1<<1)
light.speed = 4 # fast (1<<2)
The design of the light's control word is... awkward and in this case I let the awkwardness shine through.
If someone were to feel strongly enough, I could see modifying how that setter works so that it accepts monotonically increasing speed values instead of the current bit-mask style values.
Let me know if that solves the problem.
from blynclight.
Sorry that was the issue. I misread the speed setting as 0-4 setting and had set it to 3. Just tested with 1 and it works.
from blynclight.
Sweet! Glad to hear that it's working for you!
from blynclight.
Related Issues (20)
- Commands to Light Not Processing HOT 17
- Support PyUSB & HIDAPI
- ear HOT 1
- pip3 install in editable mode doesn't work HOT 1
- Installing on a Raspberry Pi HOT 20
- Control from iOS shortcut application HOT 3
- ImportError: failed to locate hidapi shared object on macOS Catalina HOT 4
- "No such device" error with blync CLI HOT 15
- ImportError after Pip update to v0.8.0 HOT 9
- ship a command line interface and driver script HOT 1
- [QUESTION] Source of COMMAND_LENGTH HOT 3
- RFE: add a udev rule to docs HOT 6
- Candle flicker effect command-line interface.
- Light not recognized. HOT 5
- MacOSX - usb.core.NoBackendError: No backend available when calling BlyncLight.available_lights() HOT 14
- Add an effects package. HOT 1
- Create a simple API server and ship in scripts directory.
- Python version testing with tox
- Relax version requirements for Python from only 3.7 to 3.5 or better HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blynclight.