I am trying to write a C program that would run the raspistill program when a a
ID: 3548069 • Letter: I
Question
I am trying to write a C program that would run the raspistill program when a a GPIO is set high. Probably just a button press. Ideally i would like it to save each new image as a new file "image1, image2, image3, ect..."
i tried to just add the command "exec("raspistill -o image.jpg")" into a LED on and off program, but all it does is loop and keep taking pictures if the button is pressed or not.(below)
I am using wiringPi.h and the raspberryPi camera
Explanation / Answer
Use this code : I think it will work fine ::
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.