Created
April 21, 2016 18:51
-
-
Save scarolan/a8c291e1e61cd8c21a6b0f7550b7144c to your computer and use it in GitHub Desktop.
This file contains 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
exports.pins = { | |
blinkm: {type: "I2C", address: 0x00, sda: 53, clock: 54} | |
}; | |
exports.configure = function() { | |
this.blinkm.init(); | |
} | |
exports.close = function() { | |
this.blinkm.init(); | |
} | |
exports.write = function(value) { | |
this.blinkm.writeByte(value); | |
} |
This file contains 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
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 | |
xsc6 -b -d /Users/seancarolan/Documents/Kinoma\ Code/Projects/blinkm/main.js -o /Users/seancarolan/Library/Preferences//fsk/1/Kinoma\ Code/com.marvell.kinoma.project.blinkm | |
http://192.168.0.64:10000/upload?path=applications%2Fcom.marvell.kinoma.project.blinkm%2Fmain.jsb&temporary=true | |
http://192.168.0.64:10000/manifest?path=applications%2Fcom.marvell.kinoma.project.blinkm&put=true&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/blinkm.js:1: # Exception: /Users/seancarolan/Documents/Kinoma Code/Projects/blinkm/blinkm.js: get exports: undefined variable! | |
/fsk/kinoma/kpr/extensions/pins/kprPins.c:393: # Exception: (host): BLL blinkm not found when invoking function write! |
This file contains 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 Pins = require("pins"); | |
var message = new MessageWithObject("pins:configure", { | |
myBlinkm: { | |
require: "blinkm" | |
} | |
}); | |
application.invoke(message); | |
application.invoke(new MessageWithObject("pins:/blinkm/write", 'o')); | |
application.invoke(new MessageWithObject("pins:close")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment