LightSensor response

Hello:
I use the LightSensor component to measure the frequency between light pulses.
When the application starts, there is a small delay between the light flash and the sensor response.
The response takes a few minutes to be instantaneous.
It is normal?
Thank you.

ONE PLUS 6T with Android 10

you might want to try the light sensor extension to find out, if you get the same issue there
https://puravidaapps.com/light.php

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Ok Taifun, with the extension it has been fixed, and the sensor responds immediately.
Muchas gracias!

Hi @Miguel_Angel_Alvarez,

What is the value of the RefreshTime property of the LightSensor? By default it is 1000 ms.

Hello @ewpatton
Yes 1000.
But it has been fixed by combining the TaifunLight extension.

You’ll want to change it to 0 if you want fast readings without leveraging the extension. Given that it was set to 1000 the behavior you were observing seems expected.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.