Skip to content

webduinoio/webduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

82ed174 Β· Apr 17, 2017

History

49 Commits
Jan 7, 2017
Jul 1, 2016
Jun 10, 2015
Jun 13, 2015
Apr 17, 2017
Sep 9, 2016
Sep 16, 2015
Aug 13, 2016
Jun 10, 2015
Jun 10, 2015
Jun 10, 2015
Jun 8, 2016
Aug 7, 2016
Oct 8, 2015
Sep 8, 2015
Sep 21, 2015
Aug 7, 2015
Oct 12, 2015
Sep 17, 2015
Sep 16, 2015
Jun 10, 2015
Oct 15, 2015
Jun 26, 2015
Nov 26, 2015
Jun 26, 2015
Jun 10, 2015
Jun 10, 2015
Apr 15, 2016
Jun 10, 2015
Jan 7, 2017
Jul 1, 2016
Jun 10, 2015
Jun 10, 2015
Sep 19, 2016

Repository files navigation

webduino

Web components for Webduino

Installation

$ bower install webduino

Usage

Insert webduino web-components and polyfill:

<script src='bower_components/webcomponentsjs/webcomponents.js'></script>
<link rel='import' href='bower_components/webduino/web-arduino.html'></link>
<link rel='import' href='bower_components/webduino/wa-led.html'></link>

Use it in your html:

<web-arduino id='board' device='device_id'>
  <wa-led id='led' pin='10'></wa-led>
</web-arduino>

Control it with javascript:

window.addEventListener('WebComponentsReady', function() {
  var board = document.getElementById('board'),
    led = document.getElementById('led');

  board.on('ready', function () {
    led.on();
  });
});

API

(coming soon...)

See Also

webduino-js (The javascript core that powers webduino)

License

This project is licensed under MIT, please see LICENSE for more information.