Skip to content

webduinoio/webduino-serial-transport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webduino-serial-transport

SerialPort Transport Plugin for webduino-js

Requirement

When running in browser, you must have the following installed:

  1. API Proxy for Google Chromeâ„¢ (launch before opening your application)
  2. API Proxy Agent for Google Chromeâ„¢

to interface with Webduino/Arduino via SerialPort.

Installation

Browser

See also: webduino-js

The webduino-base.js or webduino-all.js has bundled serial and bluetooth transports by default. If you have successfully built it or use the CDN version, you are ready to go.

Node.js

$ npm install webduino-serial-transport

Usage

webduino-js provides isomorphic APIs:

// Need to acquire 'webduino' in Node.js:
// var webduino = require('webduino-js');

var board, led;

board = new webduino.Arduino({
  transport: 'serial',
  path: '/dev/cu.usbmodem1421'
});

// or:
// board = new webduino.Arduino({
//   transport: require('webduino-serial-transport'),
//   path: '/dev/cu.usbmodem1421'
// });

board.on('ready', function() {
  led = new webduino.module.Led(board, board.getDigitalPin(10));
  led.on();
});

License

This project is licensed under the MIT license, see License for more information.

About

🔌 Serialport Transport Plugin for webduino-js

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy