Skip to content

Instantly share code, notes, and snippets.

View amcjen's full-sized avatar

Allison Clift-Jennings amcjen

View GitHub Profile
var serialport = require('serialport');
var bindexof = require('buffer-indexof');
var ready = new Buffer("> ");
function die(err)
{
console.log(err);
process.exit(1);
}
#include <SPI.h>
#include <Wire.h>
#include <Scout.h>
#include <GS.h>
#include <bitlash.h>
#include <lwm.h>
#include <js0n.h>
#include "version.h"
https://cloudup.com/cWBs6znTZLn
#define SKETCH_NAME "Custom"
#define SKETCH_BUILD 2014040301
#define SKETCH_REVISION "unknown"
#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;
<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 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);
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);
[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!
[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