This is my first attent to create a Tessel module utilizing simple components from Radio Shack and Sparkfun.
git clone https://github.com/pirumpi/emic2-interface.git
npm install //Install dependencies
tessel push app.js //run app
var tessel = require('tessel');
var router = require('tiny-router');
var emic2 = require('emic2').use(tessel.port['D']);
router
.use('static', {path: './static'})
.get('/language/{lan}', function(req, res){
emic2.setLanguage(req.body.lan);
res.send('ok');
})
.get('/volume/{vol}', function(req, res){
emic2.setVolume(parseInt(req.body.vol));
res.send('ok');
})
.........
The module is actually too big, so I can't connect other modules if this one is connected. I would really like to get my hands on a Tessel prototype board so I can get the right mesurements. Overall, it was a fun and simple projects for the holidays.