Android Question Catch the light

Isac

Active Member
Licensed User
Longtime User
Hello

I need to capture the flashes of light through a camera
eg: I place the camera in front of the lamp if the lamp turn off and then turn on the camera should count me 1.

Do you have any idea?

Thank you for your attention
 

Isac

Active Member
Licensed User
Longtime User
But TYPE_LIGHT sensor does not detect the flash from the camera, but by a dedicated sensor.
I currently have this problem
I do not see the label numeric values

is correct as I have initialized?





B4X:
Sub
Activity_Create(FirstTime AsBoolean)
ps.Initialize(ps.TYPE_LIGHT)
End Sub


B4X:
Sub Button2_Click
 
ps.StartListening("ps")
 
End Sub

B4X:
Sub ps_SensorChanged (Values() As Float)
Label1.Text=Values
End Sub

thanks
 
Upvote 0

Isac

Active Member
Licensed User
Longtime User
thanks it works
I would use the camera to capture the switching on and off an LED?
Led on = 1
Led off = 0
 
Upvote 0
Top