PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → sensor
sensor
Débuté par FS Fast, 14 nov. 2018 12:11 - 2 réponses
Posté le 14 novembre 2018 - 12:11
HI

I was wondering is it possible to use the lightsensor(smartphone)(normaly used to measure the light and dim the screen acordingly)
and return the value so it can be used as a trigger?

if so how?
what command do i need?
Membre enregistré
94 messages
Posté le 14 novembre 2018 - 14:08
Posté le 14 novembre 2018 - 15:47
i d like to use the ambiant light sensor that is build in.Trying to get it from camera bye taking a pic then calculating lux based on that would be a huge detour (and would put strain on the batery specialy if u like to check lets say every 10min).
so i went for trying to acces the sensor itself.However the code found is not recognised bye windev.
so i fal in repeating myself what command can i use to acces ambiant light sensor ?

B125 is string
B125 = Sensor.TYPE_LIGHT
trace(B125)