Comment #2 on issue 188 by [email protected]: PWM parameter setting improvement
http://code.google.com/p/jallib/issues/detail?id=188

If such settings are made using variables, there's no chance for the library to predict that. So, in my opinion, the library could only issue an unconditional warning to make the user check the datasheet whenever pwm1_set_dutycycle_highres() or the like is used. But that isn't possible, as warnings should be considered as errors.

Therefore, I doubt that there can ever be a solution to this problem.

Even worse: If you're e.g. dimming a LED from 0% to 100% incl., it might be desired to set duty cycles of 0% and 100%, which would issue a warning if this was implemented.

I'd suggest to only improve the documentation to point to these possibilities, not try to guess the user's aims.


--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to