Hi, I am new to this forum and I am also new to raspberry pi. I am programming in C language.
I built this little system that is comprised of a pir sensor and a camera. Basically when the pir sensor picks up some motion it commands the camera to take picture.
I have a problem with the storing the pictures taken by the camera. Every time it takes a pictures it deletes the old one and replaces it with the new one. I want to store all the pictures taken by the camera.
The code below is what I am executing to store the pictures. Someone help.
system("raspistill -vf -hf -o /home/pi/Desktop/Camera.pig");
Remember my code is in C language