Analog Input less precise

jirkaehm
Posts: 2
Joined: Sun Aug 28, 2016 8:55 pm

Analog Input less precise

Postby jirkaehm » Sun Aug 28, 2016 8:59 pm

Hi there,

Is there any way I can configure Evok to be less precise on Analog input?

I'm using it for simple on/off detection, so I would be ok if I could set analog INPUT result to be rounded to whole volts.

For example:
Instead of current reading 0.006V I need to result be 0V.

Is this possible?
I was unable to find any documentation of evok, is it available somewhere?

Thank you!
Best regards,
Jirkaehm
tomas_hora
Site Admin
Posts: 298
Joined: Wed Oct 29, 2014 9:56 am

Re: Analog Input less precise

Postby tomas_hora » Mon Aug 29, 2016 7:37 am

Well you could do that in your app, but if you want to do it in evok, than https://github.com/UniPiTechnology/evok ... ok.py#L302 is the place to do.
jirkaehm
Posts: 2
Joined: Sun Aug 28, 2016 8:55 pm

Re: Analog Input less precise

Postby jirkaehm » Mon Aug 29, 2016 9:18 pm

Hi Tomas,

I was hoping for a configuration switch ;-)

But thank you for direction!

Return to “Official Evok API”

Who is online

Users browsing this forum: No registered users and 0 guests