remote_fire_camera_via_gpio
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
remote_fire_camera_via_gpio [2017/02/04 20:30] – [Test Python Code With User Input] walkeradmin | remote_fire_camera_via_gpio [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 91: | Line 91: | ||
\\ | \\ | ||
<color red> | <color red> | ||
- | <file> | + | \\ |
+ | <sxh [py][; options for SyntaxHighlighter]> | ||
#! / | #! / | ||
# Python Script to fire Canon camera using 2 GPIO pins. | # Python Script to fire Canon camera using 2 GPIO pins. | ||
Line 130: | Line 131: | ||
# Cleanup GPIO | # Cleanup GPIO | ||
GPIO.cleanup() | GPIO.cleanup() | ||
- | </file> | + | </sxh> |
\\ | \\ | ||
Line 138: | Line 139: | ||
We have used a simple program to fire the camera, but more useful would be to have some options. The following code prompts the user for two inputs, the first input is the number of desired photos to be taken, the second is the delay between photos. | We have used a simple program to fire the camera, but more useful would be to have some options. The following code prompts the user for two inputs, the first input is the number of desired photos to be taken, the second is the delay between photos. | ||
\\ | \\ | ||
- | <file> | + | <sxh [py][; options for SyntaxHighlighter]> |
#! / | #! / | ||
# Python Script to fire Canon camera using 2 GPIO pins. | # Python Script to fire Canon camera using 2 GPIO pins. | ||
Line 197: | Line 198: | ||
# Cleanup GPIO | # Cleanup GPIO | ||
GPIO.cleanup() | GPIO.cleanup() | ||
- | </file> | + | </sxh> |
\\ | \\ | ||
\\ | \\ | ||
Line 207: | Line 208: | ||
\\ | \\ | ||
\\ | \\ | ||
- | {{: | + | {{: |
\\ | \\ | ||
\\ | \\ | ||
This code will form the start of my Raspberry Pi Intervalometer. This will be a great tool for static time lapse photography. Once this is done then I can move on to my camera slider project. However the actual slide rails for this will I think take me some time. | This code will form the start of my Raspberry Pi Intervalometer. This will be a great tool for static time lapse photography. Once this is done then I can move on to my camera slider project. However the actual slide rails for this will I think take me some time. | ||
\\ | \\ |
remote_fire_camera_via_gpio.1486240259.txt.gz · Last modified: 2023/03/09 22:35 (external edit)