Skip to content

Instantly share code, notes, and snippets.

@maciejkorsan
Created May 20, 2019 22:11
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 maciejkorsan/71b7f1e573e1d46afbf5f322521725b2 to your computer and use it in GitHub Desktop.
Save maciejkorsan/71b7f1e573e1d46afbf5f322521725b2 to your computer and use it in GitHub Desktop.
if (light === "star") {
hyperdrive.writeSync(1);
try {
clearTimeout(hyperdriveTimer);
} catch (e) {}
hyperdriveTimer = setTimeout(function() {
hyperdrive.writeSync(0);
}, 3000);
play("r2d2");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment