Android Question Flash single pulse

Discussion in 'Android Questions' started by anallie0, Apr 20, 2015.

  1. anallie0

    anallie0 Active Member Licensed User

    hi
    I need to take a pulse with LED flash camera. Anyone have any idea how to get it. I have to set the time duration between on and off?
     
  2. eurojam

    eurojam Well-Known Member Licensed User

    Hello,
    you can use the cameraEx class (http://www.b4x.com/android/forum/th...tends-the-camera-library-functionality.23801/) and then use something like this together with a timer:

    Code:
    Sub Camera1_Ready (Success As Boolean)
        
    If Success Then
            camEx.SetJpegQuality(
    90)
            
    Log(camEx.GetSupportedFlashModes) 'here check first which modes are supported
            camEx.SetFlashMode("torch"'will turn it on into torch mode
            camEx.CommitParameters
            camEx.StartPreview
           
           
           
            
    Log(camEx.GetPreviewSize)
        
    Else
            
    ToastMessageShow("Cannot open camera."True)
        
    End If
    End Sub
     
    DonManfred likes this.
  3. Johan Schoeman

    Johan Schoeman Expert Licensed User

    This could also perhaps do it with a timer
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice