The Wayback Machine - https://web.archive.org/web/20201113030058/https://github.com/webduinoio/webduino
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
img
 
 
js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

🛠 Web components for Webduino

Topics

Resources

License

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
You can’t perform that action at this time.