Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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


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 ::






Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote