Created
January 7, 2021 23:53
-
-
Save flxai/ed13c145d9a65eebd724e95ec0351004 to your computer and use it in GitHub Desktop.
Python stub for testing DIY remote release for Lumix GH2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from gpiozero import LED | |
from time import sleep | |
pin_trigger = LED('BOARD13') | |
pin_focus = LED('BOARD11') | |
sleep_min = .1 | |
def trigger(): | |
pin_trigger.on() | |
sleep(sleep_min) | |
pin_trigger.off() | |
def focus(): | |
pin_focus.on() | |
sleep(sleep_min) | |
pin_focus.off() | |
while True: | |
trigger() | |
sleep(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment