> > pwm_ccp1 > > pwm_ccp2 > > pwm_ccp3 > > pwm_ccp4 > > pwm_ccp5 > > Is a good example of hacking the same lib for different outputs. I > propose this is the way to do it for, say, multiple LCDs.
You forgot pwm_common.jal, which is the refactored/common part of all those pwm_ccpx libs. These are generated from a template, see /tools/pwm_ccpx.tmpl. I don't know if this is the best option to deal with multiple LCDs, we could discuss this. On next release ? > My proposal: name them according to the device pins they are > connected to, like: > > var bit TC77_SIO is pin_c4 > pin_c4_direction = input > > var bit TC77_SCK is pin_c5 > pin_c5_direction = output If we forgot the line of code about how pin direction are set (...), yes, let's use the external device pins they are connected to. They're prefixed either by the device by the device name, either by the function name, whether you respectively want to avoid namespace collisions or share the same API. I've updated JSG, please have a look at "Pin names" section. Seb -- Sébastien LELONG http://www.sirloon.net http://sirbot.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
