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
// serial communication variables | |
var serial; | |
var portName = '/dev/cu.usbmodemFD121'; | |
// video object | |
function tv(status, loop, speed, cut, vol) { | |
this.status = status; | |
this.loop = loop; | |
this.speed = speed; | |
this.cut = cut; |
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 globalOrder = 0; | |
var domino1 = new domino(-140,1); | |
var domino2 = new domino(-85,2); | |
var domino3 = new domino(-30,3); | |
var domino4 = new domino(25,4); | |
var domino5 = new domino(80,5); | |
var domino6 = new domino(135,6); | |
var slider, sliderValue; | |
var canvas; | |
var h = 35; |
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
/* might be good to use this library - | |
https://github.com/dorukeker/gyronorm.js */ | |
function handleOrientation(event) { | |
var absolute = event.absolute; | |
var alpha = event.alpha; | |
var beta = event.beta; | |
var gamma = event.gamma; | |
$(".alpha").text("alpha (z axis, 0 to 360): " + alpha); |