Writing your first program
With your Raspberry Pi switched off, connect your Raspberry Pi Camera to a camera port.
Type this code into your code editor, then save and run it:
Your camera will start up and take a photo.
The photo will be saved in the same directory as your Python file.
Now try out some of the other methods by following the recipes.