Sebastien Lelong wrote:

>> 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 ?... 

Caught! The pin direction is not changed by the pwm libs!
I'll withdraw my proposal!

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

Yes, that was the idea. A single additional instruction in a big library 
won't really bother anybody, but could prevent problem reports about not 
working pwm libs. Somewhat selfish, but also pragmatic!

Regards, Rob.

-- 
Rob Hamerling, Vianen, NL (http://www.robh.nl/)

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