var Blynk = require('http://tiny.cc/blynk-js');
var blynk = new Blynk.Blynk('715f8caae9bf4a91bae319d0376caa8d', options = {
certs_path : '../certs/'
});
var v1 = new blynk.VirtualPin(1);
var v9 = new blynk.VirtualPin(9);
v1.on('write', function(param) {
console.log('V1:', param);
});
v9.on('read', function() {
v9.write(new Date().getSeconds());
});
The link to the node.js module is a bit confusing... But to be honest the code itself is relatively compact, and can be auto-minified (via Web IDE settings) so shouldn't use up too much space.
No, you'd have to upload to the Espruino to verify it I'm afraid - to check it more sensibly I'd really need to run an Espruino instance in the web browser :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think the correct usage is:
The link to the node.js module is a bit confusing... But to be honest the code itself is relatively compact, and can be auto-minified (via Web IDE settings) so shouldn't use up too much space.
No, you'd have to upload to the Espruino to verify it I'm afraid - to check it more sensibly I'd really need to run an Espruino instance in the web browser :)