diff --git a/lib/emulator.js b/lib/emulator.js index db2621b..10d5524 100644 --- a/lib/emulator.js +++ b/lib/emulator.js @@ -24,6 +24,15 @@ function onConsoleOutput(txt) { console.log("EMSCRIPTEN:", txt); } +/* Initialise the emulator, + +options = { + EMULATOR : "banglejs"/"banglejs2" + DEVICEID : "BANGLEJS"/"BANGLEJS2" + rxCallback : function(int) - called every time a character received + consoleOutputCallback : function(str) - called when a while line is received +} +*/ exports.init = function(options) { if (options.EMULATOR) EMULATOR = options.EMULATOR;