Skip to content

Instantly share code, notes, and snippets.

@dmpop
Created February 17, 2015 16:16
Show Gist options
  • Save dmpop/e1efb6675ded79b1ca69 to your computer and use it in GitHub Desktop.
Save dmpop/e1efb6675ded79b1ca69 to your computer and use it in GitHub Desktop.
Sketch for SONY NEX series cameras release
int focus_pin = 11;
int release_pin = 13;
void setup() {
pinMode(release_pin, OUTPUT);
pinMode(focus_pin, OUTPUT);
}
void loop() {
digitalWrite(focus_pin, HIGH);
delay(500);
digitalWrite(release_pin, HIGH);
delay(500);
digitalWrite(release_pin, LOW);
digitalWrite(focus_pin, LOW);
delay(5000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment