Git Product home page Git Product logo

Comments (3)

JnyJny avatar JnyJny commented on July 28, 2024

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.

robachambers avatar robachambers commented on July 28, 2024

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.

JnyJny avatar JnyJny commented on July 28, 2024

Sweet! Glad to hear that it's working for you!

from blynclight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.