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
# run me in the root directory of the test rig sw folder | |
set -ex | |
# get our dependencies in order | |
(cd client && npm install) | |
# bundle the test rig code | |
(cd .. && tar -cvzf ./t2-test-rig-sw/t2-test-rig-sw.tar.gz ./t2-test-rig-sw/* --exclude *.pyc --exclude client/node_modules/usb/build/*) | |
# upload them to the server | |
# ?? probably an scp call to the server |
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
// Any copyright is dedicated to the Public Domain. | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
var tessel = require('tessel'); | |
var camera = require('camera-vc0706').use(tessel.port['B']); | |
var ambient = require('ambient-attx4').use(tessel.port['A']); | |
var notificationLED = tessel.led[1]; // Set up an LED to notify when we're taking a picture | |
// Sound trigger level. Clap/snap/shout for a Tesselfie! |