webduino-js - npm

文章推薦指數: 80 %
投票人數:10人

The Webduino Javascript Core, for Browser and Node.js. Installation. Browser. Using bower: $ bower install webduino-js#dist. Insert scripts:. webduino-js0.7.0 • Public • Published5daysagoReadmeExploreBETA4Dependencies10Dependents61Versionswebduino-js TheWebduinoJavascriptCore,forBrowserandNode.js Installation Browser Usingbower: $bowerinstallwebduino-js#dist Insertscripts: ...(modulesused) Orall-in-one: Node.js $npminstallwebduino-js Usage webduino-jsprovidesisomorphicAPIs: varwebduino=require('webduino-js'); varboard,led; board=newwebduino.WebArduino('device_id'); board.on('ready',function(){ led=newwebduino.module.Led(board,board.getDigitalPin(10)); led.on(); }); Transports webduino-jstalkstoWebduinoDevBoardviaMQTTbydefault.However,sincewebduino-jsspeaksFirmata,wecanalsodirectlytalktostandardArduinooranydevboardthatunderstandsfirmata. CurrentlywehavetransportssupportingUSBserialportandBluetooth(HC-06tested)communications:(Note:youhavetoinstallFirmatalibraryfirst) webduino-serial-transport webduino-bluetooth-transport SeeAlso WebduinoDevBoardandWebduinoDevKit TheFirmataProtocol ArduinoFirmataInstallation License ThisprojectislicensedunderMITlicense,seeLICENSEformoreinformation. KeywordsarduinowebduinoInstallnpmiwebduino-jsRepositoryGitgithub.com/webduinoio/webduino-jsHomepagewebduino.ioDownloadsWeeklyDownloads296Version0.7.0LicenseMITUnpackedSize2.19MBTotalFiles153Lastpublish5daysagoCollaboratorsTryonRunKitReportmalware



請為這篇文章評分?