Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow fading to a specified color over specified time with RGB Led. #1309

Closed
danielhep opened this issue Mar 23, 2017 · 2 comments

Comments

@danielhep
Copy link

Similar to the fade method for standard LEDs, a fade to color method would be perfect for RGB LEDs. This would make doing smooth color effects much easier.

@dtex
Copy link
Collaborator

dtex commented Mar 23, 2017

This might already be doable with the Animation class, though it's not well documented.

var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {

  var led = new five.Led.RGB({
    pins: { red: 6, green: 5, blue: 3 }
  });

  var animation = new five.Animation(led);

  animation.enqueue({
    duration: 2000,
    cuePoints: [0, 1.0],
    keyFrames: [ null, [0, 0, 255] ]
  });

});

Even if this works, I acknowledge that a wrapper method like Led.fade() would be nice.

@dtex
Copy link
Collaborator

dtex commented Jan 11, 2018

Hi @danielhep ,

Johnny-Five contributors and maintainers are loathe to close issues where someone has a need. We don't want anyone to ever feel that we don't care, but we just haven't gotten to this feature yet. Rather than leave it languishing as an open issue we have created a Requested Features page and added your request for Led.RGB.fade there.

@dtex dtex closed this as completed Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants