kimio-kosaka / webUSB-arduino

5 stars 1 forks source link

Original site

https://github.com/webusb/arduino

WebUSB ❤ ️Arduino

This repository contains an Arduino library for WebUSB-enabling your sketches. Example sketches and JavaScript code are available in the demos directory.

Compatible Hardware

WebUSB requires an Arduino model that gives the sketch complete control over the USB hardware. This library has been tested with the following models:

Getting Started

  1. Install at least version 1.8.5 of the Arduino IDE.

  2. Install WebUSB/arduino environment by Board Manager of Arduino IDE
    Use this package json --> https://kimio-kosaka.github.io/webUSB-arduino/package_webUSB_index.json

  3. Select WebUSB board
    Tools --> Board --> 'Arduino Micro (WebUSB)' or 'Arduino Leonardo (WebUSB)'

  4. Load up 'rgb' sketch
    File --> Examples --> WebUSB --> rgb

  5. Compile and upload it to your device.

  6. When the sketch is finished uploading you should see a notification from Chrome: "Go to https://kimio-kosaka.github.io/webUSB-arduino/index.html to connect." Try it out!

    Windows: This notification is currently disabled in Chrome on Windows due to Chromium issue 656702. Implementation of new, more stable USB support for Windows is tracked on Chromium issues 422562 and 637404.