Hi Rob,

>
> >> 2. Setting PWM in high resolution mode activates PWM, same with
> >> percent_dutycycle. Why not when setting PWM in low resolution mode?
> >> Seems more consistent to let these procedures all active PWM.
> >
> >
> > Yes, it seems.
>
> OK, will be done then!
> I'm also considering to add 'pin_CCPx_direction = output' when
> activating pwm (and don't touch it with  pwm_off()). This as service to
> the user who may easily forget it. Will be documented with pwm_on()!

Ah ! Pin direction... JSG says: "Let the user set the pin directions, except
if the library is supposed to modify direction during execution". So ?... If
you still go this way, this could also be done in pwm_init() or
pwm_hardware.jal while discovering which PWM modules are available. So it's
called once.


Cheers,
Seb

--~--~---------~--~----~------------~-------~--~----~
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