Skip to content

Commit be09dc4

Browse files
authored
comments
1 parent 677f21b commit be09dc4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/emulator.js

+9
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ function onConsoleOutput(txt) {
2424
console.log("EMSCRIPTEN:", txt);
2525
}
2626

27+
/* Initialise the emulator,
28+
29+
options = {
30+
EMULATOR : "banglejs"/"banglejs2"
31+
DEVICEID : "BANGLEJS"/"BANGLEJS2"
32+
rxCallback : function(int) - called every time a character received
33+
consoleOutputCallback : function(str) - called when a while line is received
34+
}
35+
*/
2736
exports.init = function(options) {
2837
if (options.EMULATOR)
2938
EMULATOR = options.EMULATOR;

0 commit comments

Comments
 (0)