Skip to content

Instantly share code, notes, and snippets.

View ekolker's full-sized avatar

Eric Kolker ekolker

View GitHub Profile
@ekolker
ekolker / bundler.sh
Created June 19, 2015 23:46
Scripts for the Tessel 2 testalator
# 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
@ekolker
ekolker / tesselfie.js
Created May 29, 2014 14:29
Take a selfie with Tessel using the Camera and Ambient modules
// 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!