From be09dc48b42319878c6ec440cdc75ecdd404ec86 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Thu, 9 May 2024 14:59:25 +0100 Subject: [PATCH] comments --- lib/emulator.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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;