Skip to content

Instantly share code, notes, and snippets.

@scarolan
Last active April 21, 2016 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scarolan/e8986f12466401f72f7aca793d6e6cce to your computer and use it in GitHub Desktop.
Save scarolan/e8986f12466401f72f7aca793d6e6cce to your computer and use it in GitHub Desktop.
exports.pins = {
blinkm: { type: "I2C", address: 0x09, sda: 53, clock: 54 }
};
exports.configure = function () {
this.blinkm.init();
}
exports.close = function () {
this.blinkm.close();
}
exports.write = function () {
this.blinkm.writeBlock('n', 0xFF, 0xFF, 0xFF);
}
http://192.168.0.64:10000/ping
http://192.168.0.64:10000/disconnect
http://192.168.0.64:10000/app/check?id=blinkm.project.kinoma.marvell.com
http://192.168.0.64:10000/manifest?path=applications%2Fcom.marvell.kinoma.project.blinkm&temporary=true
http://192.168.0.64:10000/install?app=applications%2Fcom.marvell.kinoma.project.blinkm%2Fapplication.xml&temporary=true
http://192.168.0.64:10000/connect?host=192.168.0.52&port=5003&title=BlinkM
http://192.168.0.64:10000/launch
/Users/seancarolan/Documents/Kinoma Code/Projects/blinkm/main.js:5: # Exception: /Users/seancarolan/Documents/Kinoma Code/Projects/blinkm/main.js: call write: no function!
/fsk/kinoma/kpr/extensions/pins/kprPins.xs:87: # Exception: configure_aux: cannot coerce undefined to object!
# Exception: configurationToMux: in: no reference!
var Pins = require('pins');
Pins.configure();
Pins.write();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment