Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created July 22, 2015 13:44
Show Gist options
  • Save michaelsarduino/2ee7a9c002076a5c85b9 to your computer and use it in GitHub Desktop.
Save michaelsarduino/2ee7a9c002076a5c85b9 to your computer and use it in GitHub Desktop.
//nachladen von johnny-five
var five = require("johnny-five");
//ArduinoBoard und LED
var Arduino, LED;
//verbinden mit dem Arduino
Arduino = new five.Board();
//Programmcode nach erfolgreicher Verbindung
Arduino.on("ready", function() {
//Pin 13 als LED definieren
LED = new five.Led(13);
//blinken der LED für 500 Millisekunden
LED.strobe( 500 );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment