如何一边操控gpio一边人脸检测How to control gpio while face detection?

具体想做的其实就是在检测到人脸后驱动iic设备
但由于我对makefile的编写十分的不熟悉,不知道该如何下手,编译一个这样的调用文件。
What I want to do is actually drive the iic device after detecting the face
But because I am very unfamiliar with the writing of makefiles, I do not know how to start compiling such a call file.