Skip to content

Instantly share code, notes, and snippets.

Created November 30, 2015 11:16
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save shundroid/8e0f4d380e27374df931 to your computer and use it in GitHub Desktop.
初めてのSphero (node.js)
"use strict";
var sphero = require("sphero");
var orb = sphero("<ポート名>");
var isRed = false;
function listen() {
setInterval(function() {
if (isRed) {
} else {
isRed = !isRed;
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment