Sebastien Lelong wrote:

> 
> PS: in adc_pindef.jal, I define a constant:
> 
> 
> const byte ADC_NTOTAL_CHANNEL = 2
> 
> 
> This is the total number of ADC channels. I'm not using it right now, but I
> may use it later to do some sanity check (if user wants more channels than
> available => error). Could this be added in device files as well ? The rule
> I used was: "if an alias starts with "AN", then it's an analog pin => total
> += 1).

Can be done (don't know it if makes the next release of device files).
As far as I understand it: this is not the highest AN-number, but the 
number of actually available channels?  Some PICs have 'holes' in the AN 
numbering range, so I wonder how useful this may be.

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