Created
May 20, 2014 04:13
-
-
Save Resseguie/6cbb124d6b0524b18804 to your computer and use it in GitHub Desktop.
This file contains 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
var Spark = require("spark-io"); | |
var board = new Spark({ | |
token: process.env.SPARK_TOKEN, | |
deviceId: process.env.SPARK_DEVICE_ID | |
}); | |
board.on("ready", function() { | |
console.log("CONNECTED"); | |
this.pinMode("D0", this.MODES.OUTPUT); | |
// Analog write to a digital pin for Servos | |
this.analogWrite("D0", 0); | |
// This should just make the continuous servo turn | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This demonstrates a bug? analogWrite with value 0 should be full speed in direction "A". Instead it stops servo completely.