GithubHelp home page GithubHelp logo

Comments (7)

khoih-prog avatar khoih-prog commented on June 21, 2024

Hi @LaurentR59

The current 16-channel limitation is artificial and arbitrary decided to avoid overloading the board. I'll create a new version for this feature.

Anyway, I'll make it configurable in users' code, and will be max 48. But I think for slow PWM (low PWM frequency), the max number of channels can be very large.

Is that value 48 reasonably large enough ?

You can also use many Timers, if available, by adding the Timers and similar code for 1 Timer.

other is to get capacity or possibility to move millis() on a TIMER A type? (not sure it would be well managed by dx core or megacorex and megatinycore?)

With DxCore, you can move millis() to other Timers, such as TCA, TCD

from dx_slow_pwm.

LaurentR59 avatar LaurentR59 commented on June 21, 2024

from dx_slow_pwm.

khoih-prog avatar khoih-prog commented on June 21, 2024

OK, hear you, I'll set max number of channels to 64 and configurable in your code.

Will modify those slow PWM-related libraries similar way. The next release will be out within today.

Please test then, with max 64 channels, if possible.

from dx_slow_pwm.

khoih-prog avatar khoih-prog commented on June 21, 2024

Hi @LaurentR59

The new Dx_Slow_PWM releases v1.0.1 has just been published. Your contribution is noted in Contributions and Thanks

Looking forward to receiving more contributions from you.

Best Regards,


Release v1.0.1

  1. Make MAX_NUMBER_CHANNELS configurable to max 64 PWM channels
  2. Remove debug codes possibly causing hang
  3. Improve debug to use Serialx port automatically according to boards

from dx_slow_pwm.

LaurentR59 avatar LaurentR59 commented on June 21, 2024

from dx_slow_pwm.

khoih-prog avatar khoih-prog commented on June 21, 2024

You now just declare in your code (any number up to 64). Will be trimmed to 64 if bigger than 64.

// Be careful when using MAX_NUMBER_CHANNELS > 16. Max pemissible MAX_NUMBER_CHANNELS is 64
#define MAX_NUMBER_CHANNELS 16

from dx_slow_pwm.

LaurentR59 avatar LaurentR59 commented on June 21, 2024

from dx_slow_pwm.

Related Issues (4)

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.