Control LED brighness using brightness of the image

I want to control the brightness of led with respect to the brightness of the image.
I actually did this by using the variable “val” in the following function in NX

static int imx219_set_exposure(struct tegracam_device *tc_dev, s64 val)

But when I try the same with the following function in AGX its not working

static int ov5693_set_exposure(struct tegracam_device *tc_dev, s64 val)

I verified that this function is not being called
Is there anything needed to be enabled in order to call this fucntion.
can anyone help fix this?

Try v4l2-ctl utility like below command.

v4l2-ctl -c exposure=5607 -c override_enable=1
1 Like

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