Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Sharing hardware with JavaScript

mulderp
November 07, 2014

Sharing hardware with JavaScript

small overview on JavaScript libraries that help sharing hardware online

mulderp

November 07, 2014
Tweet

More Decks by mulderp

Other Decks in Programming

Transcript

  1. Circuit.js <canvas id="schematic" width="500" height="500"></canvas> {! "title": "OPA2107",! "type": "dip",!

    "pins": [! "OUTPUT1",! "INPUT1-",! "INPUT1+",! "V-",! "INPUT1+",! "INPUT1-",! "OUTPUT2",! "V+"! ]! } var canvas = document.getElementById('schematic');! var context = canvas.getContext('2d');! ! circuit.part(schematic).draw(canvas);
  2. VivaSVG var points = require(‘data’);! var vivasvg = require('vivasvg');! !

    vivasvg.bootstrap(! document.getElementById(‘main'),! {points: points}! );