Hi Rob, guys,

I'm writing a library for Maxbotix EZ1 sonar. Distance can be read through
ADC, and converted as: 9.8mV <-> 1 inch @5V, 6.4mV <-> 1 inch @ 3V3.

So I need to convert an ADC value to mV. Depending on the resolution, the
upper value can vary: 256, 1024, 4096.

I was wondering if there's a constant define somewhere in device files that
would tell which ADC resolution is used. I can't even check
ADC_RESOLUTION_HIGH since it's been removed (and would even not tell me all
the details).

Any idea ?

(note I'd to deal with floating number as well...)

Cheers
Seb
-- 
Sébastien Lelong

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


Reply via email to