Thanks AI B, this only will get me a voltage, but how I can covert it to
distance in cm?
On 6 May 2014 23:53, "Al B" <[email protected]> wrote:

> AnalogInput _ir;
>
> @Override
> protected void setup() throws ConnectionLostException,
> InterruptedException {
> ..
> ...
>    _ir = ioio_.openAnalogInput(40);
> ....
> ..
> }
>
> @Override
> public void loop() throws ConnectionLostException {
> ..
> ....
>    float value = _ir.getVoltage();
> ....
> ..
> }
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "ioio-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ioio-users/o9KPxMtSyyU/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ioio-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" 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/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to