Skip to content

Instantly share code, notes, and snippets.

The target system is: Linux - - i686
The host system is: Linux - 3.13.0-74-generic - i686
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags:
The output was:
0
'use strict';
var assert = require('assert'),
i2c = require('i2c-bus'),
i2c1;
var ADDR = 0x53,
POWER_REG = 0x2d,
RANGE_REG = 0x31,
READ_REG = 0x32;
'use strict';
var EventEmitter = require('events').EventEmitter,
Gpio = require('onoff').Gpio,
Q = require('q'),
util = require('util'),
tick = global.setImmediate || process.nextTick;
var __ROW_OFFSETS = [0x00, 0x40, 0x14, 0x54];
var Gpio = require('pigpio').Gpio,
motor = new Gpio(10, {mode: Gpio.OUTPUT});
setInterval(function () {
motor.servoWrite(1000);
setTimeout(function () {
motor.servoWrite(2000);
}, 1500);
}, 3000);
var five = require('johnny-five');
var chipio = require('chip-io');
// Light
var lux;
// Compass
var heading;
var bearing;
console.log("TMP36");
for (var raw = 0; raw != 1023; raw += 1) {
var mV = 5.0 * 1000 * raw / 1023;
var correctTemp = Math.round((mV / 10) - 50);
mV = 5.0 * 1000 * raw / 1024;
var incorrectTemp = Math.round((mV / 10) - 50);
if (correctTemp != incorrectTemp) {
pi@raspberrypi:~/tjbot/bootstrap/tests $ npm install
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
> fibers@1.0.15 install /home/pi/tjbot/bootstrap/tests/node_modules/fibers
> node build.js || nodejs build.js
make: Entering directory '/home/pi/tjbot/bootstrap/tests/node_modules/fibers/build'
CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc: In function ‘v8::Handle<v8::String> uni::NewLatin1String(v8::Isolate*, const char*)’:
../src/fibers.cc:122:64: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /home/pi/.node-gyp/6.10.2/include/node/v8.h:2332): Use maybe version [-Wdeprecated-declarations]
@fivdi
fivdi / bootstrap.log
Created April 19, 2017 21:18
bootstrap.sh for tjbot
pi@raspberrypi:~ $ ./bootstrap.sh
ipv6.disable=1
We just disabled ipv6 due better network compatibility. It will take effect after restart.
nameserver 8.8.8.8
nameserver 8.8.4.4
en_US.UTF-8 UTF-8
Generating locales (this might take a while)...
en_GB.UTF-8... done
en_US.UTF-8... done
Generation complete.
debian@beaglebone:~/node8/bonescript$ node -v
v8.7.0
debian@beaglebone:~/node8/bonescript$ npm i bonescript
> ref@1.3.5 install /home/debian/node8/bonescript/node_modules/ref
> node-gyp rebuild
make: Entering directory '/home/debian/node8/bonescript/node_modules/ref/build'
CXX(target) Release/obj.target/binding/src/binding.o
SOLINK_MODULE(target) Release/obj.target/binding.node
@fivdi
fivdi / build-output
Created February 27, 2018 21:29
build nan tests with v10.0.0-nightly20180226dbe645f114
pi@raspberrypi:~/nan $ npm run-script rebuild-tests
> nan@2.9.2 rebuild-tests /home/pi/nan
> node-gyp rebuild --msvs_version=2015 --directory test
make: Entering directory '/home/pi/nan/test/build'
CXX(target) Release/obj.target/accessors/cpp/accessors.o
In file included from ../cpp/accessors.cpp:9:0:
../../nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]