Emic 2 Web Interface
This is my first attent to create a Tessel module utilizing simple components from Radio Shack and Sparkfun.
Components used
Software
Wiring
Assembly
Web Interface
Install & run
git clone https://github.com/pirumpi/emic2-interface.git npm install //Install dependencies tessel push app.js //run app
Code Preview
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'); }) .........
Comments
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.
Comments