This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require('net'); | |
var SerialPort = require('serialport').SerialPort; | |
//possibly something like COM1 on windows | |
var SERIAL_PORT = process.env.SERIAL_PORT || '/dev/tty.usbmodem1421'; | |
var PORT = process.env.PORT || 3001; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"2f8628c2.e692b8","type":"nodebot","z":"10cff070.ef301","name":"","username":"","password":"","boardType":"firmata","serialportName":"","connectionType":"webusb-serial","mqttServer":"","socketServer":"","pubTopic":"","subTopic":"","tcpHost":"","tcpPort":"","sparkId":"","sparkToken":"","beanId":"","impId":"","meshbluServer":"https://meshblu.octoblu.com","uuid":"","token":"","sendUuid":""},{"id":"1b2f064f.b9378a","type":"johnny5","z":"10cff070.ef301","name":"","func":"var r = new five.Pin(9);\nvar g = new five.Pin(11);\nvar b = new five.Pin(10);\n\nvar buttonState;\n\nnode.on('input', function(msg){\n if(msg.payload && msg.payload.buttons){\n var buttons = msg.payload.buttons;\n var updated = !_.isEqual(buttons, buttonState);\n buttonState = buttons;\n if(updated){\n \n if(buttons[9].pressed){\n r.high();\n }\n else{\n r.low();\n }\n \n if(buttons[1].pressed){\n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require('net'); | |
var five = require('johnny-five'); | |
var firmata = require('firmata'); | |
var options = { | |
host: '192.168.2.5', //whatever host | |
port: 48879 //some port | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SerialPort = require('serialport').SerialPort; | |
var bindPhysical = require('mqtt-serial').bindPhysical; | |
var mqtt = require('mqtt'); | |
// might be something like COM1 on windows | |
var SERIAL_PORT = process.env.SERIAL_PORT || '/dev/tty.usbmodem1421'; | |
var serialPort = new SerialPort(SERIAL_PORT,{ | |
baudrate: 57600, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"ecRgcC-r-Uw","type":"inject","z":"mDRMOWxAyVw","name":"","topic":"","payload":"hello chirpers!","payloadType":"str","repeat":"","crontab":"","once":false,"allowDebugInput":false,"x":137,"y":38,"wires":[["SyhBmgL-B6k"]]},{"id":"SyhBmgL-B6k","type":"debug","z":"mDRMOWxAyVw","name":"","active":true,"console":"false","complete":"true","x":336,"y":86,"wires":[]}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global chrome*/ | |
var EventEmitter = require('./events.js').EventEmitter; | |
var util = require('./util.js'); | |
function SerialPort(port, options) { | |
var self = this; | |
var id; | |
var bytesToRead = options.buffersize || 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"5B8LAF_kx78","type":"change","z":"4cDfTnOOUyA","name":"forward","rules":[{"t":"set","p":"payload","pt":"msg","to":"[37,1,38,0,39,1,34,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":545,"wires":[[]]},{"id":"Q_y_43OV28I","type":"change","z":"4cDfTnOOUyA","name":"reverse","rules":[{"t":"set","p":"payload","pt":"msg","to":"[37,0,38,1,39,0,34,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":611,"wires":[[]]},{"id":"878sgrEuzGI","type":"change","z":"4cDfTnOOUyA","name":"left","rules":[{"t":"set","p":"payload","pt":"msg","to":"[37,1,38,0,39,0,34,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1231,"y":672,"wires":[[]]},{"id":"uPJDkhN8cq4","type":"change","z":"4cDfTnOOUyA","name":"right","rules":[{"t":"set","p":"payload","pt":"msg","to":"[39,1,34,0,37,0,38,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":738,"wires":[[]]},{"id":"9zVxYvdVzW8","type":"bluetooth ou |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dat://d40cf94435866fafa161c1cf5ac6fbba87c449696ab1c24732f09345a84e0f73 | |
dat://4c82fd97fc845b37da5eef33f83b03979b2cf8a9ab53f83af2b5e3da1c4a783e | |
music: dat://2c1aebd957f3ee2f4ce0f76af0f09f81ee259fa0b4d4679822eb3b87db56a3b2 | |
dat://28e82c8534a76b40439ce97b7f69bc5bb3c37f6b6a1c4d7c8feb2aebbcf00af1/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require('net'); | |
var five = require('johnny-five'); | |
var firmata = require('firmata'); | |
var client = net.connect({port: 8124}, function() { //'connect' listener | |
console.log('connected to server!'); | |
console.log('connected to server event!'); | |
var io = new firmata.Board(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<svg | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:cc="http://creativecommons.org/ns#" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:svg="http://www.w3.org/2000/svg" | |
xmlns="http://www.w3.org/2000/svg" | |
id="svg3035" | |
viewBox="0 0 630 630" | |
height="100%" |
NewerOlder