Closed hatrinh-sj closed 1 week ago
Hi @hatrinh-sj,
You can configure PA0(D0) as a GPIO function using the following method:
// Configure PA0(D0) as GPIO0 hx_drv_gpio_set_output(AON_GPIO0, GPIO_OUT_LOW); hx_drv_scu_set_PA0_pinmux(SCU_PA0_PINMUX_AON_GPIO0_2, 1);
// set GPIO0 output high hx_drv_gpio_set_out_value(AON_GPIO0, GPIO_OUT_HIGH);
// set GPIO0 output low hx_drv_gpio_set_out_value(AON_GPIO0, GPIO_OUT_LOW);
Thank you. I guess I must put the command to flip the pin in function "cv_fd_fm_run" in "cvapp_fd_fm.cpp". Is it correct?
if (alg_result->num_tracked_human_targets == 0)
{
//need to wait jpeg transfer done
...
hx_drv_gpio_set_out_value(AON_GPIO0, GPIO_OUT_LOW);
}
else {
hx_drv_gpio_set_out_value(AON_GPIO0, GPIO_OUT_HIGH);
...
}
Yes, it is.
Hi Kris,
My requirement is simple: if a face is detected, turn on a specific GPIO pin. Is it possible to use GPIO on Vision AI V2? I use serial only for debugging. I don't need face mesh or landmark.