This file contains hidden or 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'); | |
var bindexof = require('buffer-indexof'); | |
var ready = new Buffer("> "); | |
function die(err) | |
{ | |
console.log(err); | |
process.exit(1); | |
} |
This file contains hidden or 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
#include <SPI.h> | |
#include <Wire.h> | |
#include <Scout.h> | |
#include <GS.h> | |
#include <bitlash.h> | |
#include <lwm.h> | |
#include <js0n.h> | |
#include "version.h" |
This file contains hidden or 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
https://cloudup.com/cWBs6znTZLn |
This file contains hidden or 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
#define SKETCH_NAME "Custom" | |
#define SKETCH_BUILD 2014040301 | |
#define SKETCH_REVISION "unknown" |
This file contains hidden or 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
#include <SPI.h> | |
#include <Wire.h> | |
#include <Scout.h> | |
#include <GS.h> | |
#include <bitlash.h> | |
#include <lwm.h> | |
#include <js0n.h> | |
#include "version.h" | |
int PIN = 4; |
This file contains hidden or 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
<script src="https://api.pinocc.io/pinoccio.js"></script> | |
<script> | |
// this example works both on server and browser with browserify. | |
// To get your auth token run ```pinoccio token``` in your terminal | |
// You may need to login. To install the cli run ```sudo npm install -g pinoccio``` | |
var api = pinoccioAPI(); |
This file contains hidden or 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
// this example works both on server and browser with browserify. | |
var pinoccio = require('pinoccio'); | |
var token = "my auth token here"; | |
// To get your auth token run ```pinoccio token``` in your terminal | |
// You may need to login. To install the cli run ```sudo npm install -g pinoccio``` | |
var api = pinoccio(token); |
This file contains hidden or 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
addBitlashFunction("mesh.config", (bitlash_function) meshConfig); | |
addBitlashFunction("mesh.setpower", (bitlash_function) meshSetPower); | |
addBitlashFunction("mesh.setdatarate", (bitlash_function) meshSetDataRate); | |
addBitlashFunction("mesh.setkey", (bitlash_function) meshSetKey); | |
addBitlashFunction("mesh.getkey", (bitlash_function) meshGetKey); | |
addBitlashFunction("mesh.resetkey", (bitlash_function) meshResetKey); | |
addBitlashFunction("mesh.joingroup", (bitlash_function) meshJoinGroup); | |
addBitlashFunction("mesh.leavegroup", (bitlash_function) meshLeaveGroup); | |
addBitlashFunction("mesh.ingroup", (bitlash_function) meshIsInGroup); | |
addBitlashFunction("mesh.send", (bitlash_function) meshSend); |
This file contains hidden or 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
[eric@Waterdog ~/BeanLabs/hardware/pinoccio/firmware-pinoccio] [master]:~$ ./build.sh | |
Detecting version... | |
Bootstrap build -1 (rev 2014031902-6-gd65592f-dirty) | |
Building/uploading... | |
Sketch uses 104,480 bytes (41%) of program storage space. Maximum is 253,952 bytes. | |
Global variables use 14,374 bytes of dynamic memory. | |
Done! |
This file contains hidden or 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
[eric@Waterdog ~/BeanLabs/hardware/pinoccio/firmware-pinoccio] [master]:~$ ./build.sh | |
Detecting version... | |
Bootstrap build -1 (rev 2014031902-6-gd65592f-dirty) | |
Building/uploading... | |
./build.sh: line 132: arduino: command not found |