Git Product home page Git Product logo

Comments (12)

Jellyfrog avatar Jellyfrog commented on August 24, 2024

+1 for RGB-led

from johnny-five.

rwaldron avatar rwaldron commented on August 24, 2024

+1 as well

I believe I had started working on something like this, but then deferred on it. Seems worthwhile to reboot :)

from johnny-five.

rmurphey avatar rmurphey commented on August 24, 2024

Happy to take a stab at this unless you want to @rwldrn .

from johnny-five.

rwaldron avatar rwaldron commented on August 24, 2024

@rmurphey it's all yours :)

from johnny-five.

cooltrooper avatar cooltrooper commented on August 24, 2024

Could this include support for common anode and common cathode leds.

from johnny-five.

rmurphey avatar rmurphey commented on August 24, 2024

I don't think it would be hard to provide support for both. However, as you may have noticed, I haven't actually worked on this yet. @cooltrooper if you want to take a stab at it, please do!

from johnny-five.

cooltrooper avatar cooltrooper commented on August 24, 2024

I dont really understand how to write modules yet to help, but if you have any reading you think I should do, I'll give it a read and help if I can?

from johnny-five.

haugstrup avatar haugstrup commented on August 24, 2024

The most annoying thing is that many RGB leds are common-anode so when you wire them up HIGH is off and LOW is on. Makes it harder to work with the Led constructor since all commands have to be reversed.

from johnny-five.

rwaldron avatar rwaldron commented on August 24, 2024

@haugstrup have you been experiencing this with five.Led()? I always just use .on() and .off()... but I suspect I'm using common-anode Leds since I've never actually experienced the problem myself.

from johnny-five.

rmurphey avatar rmurphey commented on August 24, 2024

@cooltrooper your best bet is to take a look at an existing module and start from there -- that's how I wrote my first one :) I'd be happy to take a look at a draft or answer any particular questions you might have.

from johnny-five.

paultag avatar paultag commented on August 24, 2024

Do keep in mind LOW isn't ground, so the real way is to get a transistor to ground out the pin, which will let you use logical high. Dimming might become an issue for slow transistors though

from johnny-five.

rwaldron avatar rwaldron commented on August 24, 2024

24cc288

from johnny-five.

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.