🛠 Web components for Webduino
HTML JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo add ssd1306 support Jan 7, 2017
img Add stepper. Jul 1, 2016
js initial commit Jun 10, 2015
LICENSE Added license and readme Jun 13, 2015
README.md Update README.md Apr 17, 2017
bower.json use webduino-js#dist Sep 9, 2016
wa-adxl345.html Add the demo of adxl345. Sep 16, 2015
wa-barcode.html add barcode webcomponent Aug 13, 2016
wa-button.html initial commit Jun 10, 2015
wa-buzzer.html initial commit Jun 10, 2015
wa-dht.html initial commit Jun 10, 2015
wa-g3.html add g3 webComponent Jun 8, 2016
wa-hx711.html add electronic scales (hx711) Aug 7, 2016
wa-irled.html Fixed bug: send method in irled. Oct 8, 2015
wa-irrecv.html Add irrecv. Sep 8, 2015
wa-joystick.html Add joystick. Sep 21, 2015
wa-led.html Fix blink callback. Aug 7, 2015
wa-max7219.html Fixed bug: animate of max7219. Oct 12, 2015
wa-mq2.html Add mq2. Sep 17, 2015
wa-photocell.html Add photocell. Sep 16, 2015
wa-pir.html initial commit Jun 10, 2015
wa-pot.html Add pot (potentiometer). Oct 15, 2015
wa-relay.html Bumped webduino-js: 0.1.4; Added callback for Led, RGBLed, Relay Jun 26, 2015
wa-rfid.html Changed some wording of RFID Nov 26, 2015
wa-rgbled.html Bumped webduino-js: 0.1.4; Added callback for Led, RGBLed, Relay Jun 26, 2015
wa-servo.html initial commit Jun 10, 2015
wa-shock.html initial commit Jun 10, 2015
wa-soil.html Add soil. Apr 15, 2016
wa-sound.html initial commit Jun 10, 2015
wa-ssd1306.html add ssd1306 support Jan 7, 2017
wa-stepper.html Add stepper. Jul 1, 2016
wa-tilt.html initial commit Jun 10, 2015
wa-ultrasonic.html initial commit Jun 10, 2015
web-arduino.html add websocket Sep 19, 2016

README.md

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.