Skip to content

Instantly share code, notes, and snippets.

@10p-freddo
Created November 27, 2011 19:33
Show Gist options
  • Save 10p-freddo/1398029 to your computer and use it in GitHub Desktop.
Save 10p-freddo/1398029 to your computer and use it in GitHub Desktop.
Arduino sketch to activate Locca Remote Key via serial
const int basePin = 2;
void triggerRemote() {
digitalWrite(basePin, HIGH);
delay(2000);
digitalWrite(basePin, LOW);
}
void setup() {
pinMode(basePin, OUTPUT);
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
Serial.read();
triggerRemote();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment