Created
July 22, 2015 13:44
-
-
Save michaelsarduino/2ee7a9c002076a5c85b9 to your computer and use it in GitHub Desktop.
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
//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