Code Monkey home page Code Monkey logo

Comments (27)

fabianoriccardi avatar fabianoriccardi commented on July 20, 2024 1

Technically there is no limit (leaving out the memory and pins) to the number of dimmers.

Just change the "soft" limit to the desired value here:

static const uint8_t N = 8;

and here:

static const uint8_t N = 8;

from dimmable-light.

fabianoriccardi avatar fabianoriccardi commented on July 20, 2024 1

I have never tested more than 8 dimmers, so I didn't want to document what it is not tested. However, if you have succeeded, I will add a note and eventually I can add an easier way to increment the max number of dimmers.

from dimmable-light.

kleurbleur avatar kleurbleur commented on July 20, 2024

I have to run some extra tests, but the test above seems to run good now. I raised the number of maximum lights to 12 by adjusting static const uint8_t N = 8; to 12 on line 91 in thrystor.h

from dimmable-light.

bcelary avatar bcelary commented on July 20, 2024

would be great to know if this limit could be increased to 16. I am using Arduino Mega and was hoping to get up to 16 dimmers. not sure if anyone has tried increasing to this max number...?

from dimmable-light.

bcelary avatar bcelary commented on July 20, 2024

Glad to hear that. Maybe it is worth adding this in a comment so when others look at the limitation, they are going to be less concerned with making a change. Or perhaps maybe make it adjustable at the compile time?

I have cloned the repo anyway as I think I might need to also be able to retrieve the pin number from the thyristor class. This is handy when I have an array of dimmers.

from dimmable-light.

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.