camera_get_flash_level()
Retrieve the flash charge level.
Synopsis:
#include <camera/camera_api.h>
camera_error_t camera_get_flash_level(camera_handle_t handle, uint32_t *percent)
Arguments:
- handle
-
The handle returned by a call to the camera_open() function.
- percent
-
A pointer to the returned percentage value.
Library:
libcamapiDescription:
Use this function to get the current flash level, as a percentage of the maximum possible flash level.
Returns:
CAMERA_OK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.