Skip to content

Instantly share code, notes, and snippets.

@andreareginato
Created December 12, 2014 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreareginato/4f70d0495eee43e62f60 to your computer and use it in GitHub Desktop.
Save andreareginato/4f70d0495eee43e62f60 to your computer and use it in GitHub Desktop.
/* arduino setup */
void setup() {
Serial.begin(9600);
delay(500);
Serial.println("Start initialization of Yun...");
Bridge.begin();
Serial.println("Starting connection to lelylan...");
lelylanConnection(); // MQTT server connection
pinMode(inPin, INPUT); // button pin setup
pinMode(outPin, OUTPUT); // led pin setup
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment