A Web Component to control an Arduino device.
JavaScript HTML
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
js
.gitignore
.jshintrc
README.md
bower.json
package.json
web-arduino.html

README.md

Web Arduino

A Web Component to control an Arduino device.

Import It in Your Project

  1. Download: Run bower install web-arduino or npm install web-arduino.
  2. Import: Add <link id="webArduino" rel="import" href="path/to/web-arduino/web-arduino.html"> in your Web app.

Examples

Blink a LED.

Blink LED

<web-arduino id="arduino" device-name="ARDUINO"></web-arduino>
<script>
  var arduino = document.querySelector('#arduino');
  arduino.onconnected = function() {
    arduino.d7 = Arduino.HIGH;
    setInterval(function() {
      arduino.d7 = !arduino.d7;
    }, 1000);
  });
</script>

Platform Compatibility