Skip to content

Instantly share code, notes, and snippets.

View jacobrosenthal's full-sized avatar

Jacob Rosenthal jacobrosenthal

View GitHub Profile
@jacobrosenthal
jacobrosenthal / screenlog.0
Created October 3, 2015 17:13
node-serialport #566 raspberry pi wheezy 'updated' to jessie
./node_modules/.bin/node-pre-gyp install --fallback-
-to-build 2>&1 > log.txt
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | linux | arm
node-pre-gyp info check checked for "/home/pi/node-serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm/serialport.node" (not found)
node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.7.4/Release/node-v46-linux-arm.tar.gz
node-pre-gyp http 404 https://node-serialport.s3.amazonaws.com/serialport/v1.7.4/Release/node-v46-linux-arm.tar.gz
node-pre-gyp http Pre-built binary not available for your system, looked for https://node-serialport.s3.amazonaws.com/s
@jacobrosenthal
jacobrosenthal / gist:3d35e7e5390da73129cc
Created October 3, 2015 18:15
node eddystone beacon platform-check-bleno-property xpcError: connection interrupted
Last login: Sat Oct 3 19:09:03 on ttys001
cd Jacobs-MacBook-Air:~ jacobrosenthal$ cd /Users/jacobrosenthal/Downloads/node-ystone-beacon
Jacobs-MacBook-Air:node-eddystone-beacon jacobrosenthal$ DEBUG=* node examples/uid/with-tlm.js
bleno platform darwin +0ms
bleno addressChange b8:e8:56:03:d3:ed +3ms
bindings sendCBMsg: 1, {
"kCBMsgArgName": "node-1443893725770",
"kCBMsgArgOptions": {
"kCBInitOptionShowPowerAlert": 1
},
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
Jacobs-MacBook-Air:gcc jacobrosenthal$ openocd -f board/nordic_nrf51822_mkit.cfg -c "program /Users/jacobrosenthal/Downloads/s110_nrf51822_7.3.0/s110_nrf51822_7.3.0_softdevice.hex verify; shutdown" -d
Open On-Chip Debugger 0.9.0 (2015-05-28-12:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 3 command.c:546 command_print(): debug_level: 3
Debug: 14 3 options.c:98 add_default_dirs(): bindir=/usr/local/Cellar/open-ocd/0.9.0/bin
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/Cellar/open-ocd/0.9.0/share/openocd
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding /Users/jacobrosenthal/.openocd
Jacobs-MacBook-Air:gcc jacobrosenthal$ openocd -f board/nordic_nrf51822_mkit.cfg -d3
Open On-Chip Debugger 0.9.0 (2015-05-28-12:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 2 command.c:546 command_print(): debug_level: 3
Debug: 14 2 options.c:98 add_default_dirs(): bindir=/usr/local/Cellar/open-ocd/0.9.0/bin
Debug: 15 2 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/Cellar/open-ocd/0.9.0/share/openocd
Debug: 16 2 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 2 configuration.c:44 add_script_search_dir(): adding /Users/jacobrosenthal/.openocd
Jacobs-MacBook-Air:gcc jacobrosenthal$ openocd -f board/nordic_nrf51822_mkit.cfg -c "reset_config srst_only; program /Users/jacobrosenthal/Downloads/s110_nrf51822_7.3.0/s110_nrf51822_7.3.0_softdevice.hex verify; shutdown" -d3
Open On-Chip Debugger 0.9.0 (2015-05-28-12:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 3 command.c:546 command_print(): debug_level: 3
Debug: 14 3 options.c:98 add_default_dirs(): bindir=/usr/local/Cellar/open-ocd/0.9.0/bin
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/Cellar/open-ocd/0.9.0/share/openocd
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding /Users/jacobrosenthal/.openocd
@jacobrosenthal
jacobrosenthal / gist:868186848962af0ee7ae
Created October 22, 2015 06:20
Node serialport error log when using old version of Visual Studio
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
serialport.cpp
c:\users\jacobrosenthal\.node-gyp\4.2.1\include\node\v8.h(336): error C2988: unrecognizable template declaration/definition [c:\Users\jacobrosenthal\node-serialport\build\serialport.vcxproj]
c:\users\jacobrosenthal\.node-gyp\4.2.1\include\node\v8.h(336): error C2059: syntax error : 'using' [c:\Users\jacobrosenthal\node-serialport\build\serialport.vcxproj]
c:\users\jacobrosenthal\.node-gyp\4.2.1\include\node\v8.h(469): error C2988: unrecognizable template declaration/definition [c:\Users\jacobrosenthal\node-serialport\build\serialport.vcxproj]
c:\users\jacobrosenthal\.node-gyp\4.2.1\include\node\v8.h(469): error C2059: syntax error : 'using' [c:\Users\jacobrosenthal\node-serialport\build\serialport.vcxproj]
c:\users\jacobrosenthal\.node-gyp\4.2.1\include\node\v8.h(472): error C2332: 'enum' : missing tag name [c:\Users\jacobrosenthal\node-serialport\build\serialport.vcxproj]
c:\users\jaco
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(115200);
// set the data rate for the SoftwareSerial port
mySerial.begin(115200);
}
@jacobrosenthal
jacobrosenthal / gist:4bcda26e012d46149c2c
Created January 20, 2016 04:36
shitty example for the mbed mpu6050 library
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
openocd -f interface/jlink.cfg -c "adapter_khz 2000; transport select swd;set WORKAREASIZE 0;" -f target/nrf51.cfg -c "init; reset init; halt; nrf51 mass_erase; program blah.hex 0x0 verify; exit;"